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
Next revision
Previous revision
ios-labs-s14:class-03 [2014/02/07 12:39]
mbarboi [Make Array Property]
ios-labs-s14:class-03 [2014/02/07 12:55]
mbarboi [Constrain Table]
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//.
  
Line 330: Line 330:
 ====Constrain Table==== ====Constrain Table====
   -Change //​numberOfRowsInSection//​ to return the size of the posts array IFF the maxPosts integer property is -1 OR the size of the posts array is less than the max integer, ELSE return maxPosts   -Change //​numberOfRowsInSection//​ to return the size of the posts array IFF the maxPosts integer property is -1 OR the size of the posts array is less than the max integer, ELSE return maxPosts
-----+-----
  
 ======Conclusion===== ======Conclusion=====
ios-labs-s14/class-03.txt ยท Last modified: 2014/02/07 12:55 by mbarboi