Dictionary Objects

Had a little bit of fun today, for some reason accessing a dictionary object by substring did not return the correct object.  So for future reference ALWAYS use

let photosarray = dictionary.value(forKey: “photos”)

Scratched my head about this for a few hours today.  Accessing by “forKey” is the correct reference per the Apple documentation

Leave a comment

Your email address will not be published. Required fields are marked *