User Tools

Site Tools


ios-labs-s14:class-03

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Last revision Both sides next revision
ios-labs-s14:class-03 [2014/02/07 12:39]
mbarboi [Make Array Property]
ios-labs-s14:class-03 [2014/02/07 12:50]
mbarboi [Make Array Property]
Line 163: Line 163:
   -The next instructions are all inside the loop: declare a new Dictionary object, instantiate it with the contents of the current post by accessing the array object at the current index.   -The next instructions are all inside the loop: declare a new Dictionary object, instantiate it with the contents of the current post by accessing the array object at the current index.
   -Declare and instantiate a new //Post// object   -Declare and instantiate a new //Post// object
-  -For each property in the //Post// object, dig through the dictionary object to find and assign the relevant key. You will have to nest //​objectForKey//​ calls. The relevant keys are "​full_name,"​ "standard_resolution, and "url"+  -For each property in the //Post// object, dig through the dictionary object to find and assign the relevant key. You will have to nest //​objectForKey//​ calls. The relevant keys are "​full_name," ​(under the user object) ​"url," (under images, standard_resolution) ​and "text" ​(under caption)
   -The first is shown as an example below. This is assuming the post object you created is called //post//, the dictionary is called //entry//.   -The first is shown as an example below. This is assuming the post object you created is called //post//, the dictionary is called //entry//.
  
ios-labs-s14/class-03.txt ยท Last modified: 2014/02/07 12:55 by mbarboi