so, doubt this: how can store data (strings , images, example) in application , then, later, retrieve these data properly? i've read stuff didn't quite understand (call me whatever want u.u). idea have viewcontrollers, and, in each one, i'm inserting data, names, images, texts, , want 1 final viewcontroller retrieve these data, when tap cell. have done, except don't know how retrieve these data in last viewcontroller. how should it? delegates pattern? using coredata?
thanks in advance!
edit
i have 4 viewcontrollers. first 1 has tableview store recipe name. second one, text name of recipe , pick image photolibrary. second viewcontroller has 2 segues: 1 third viewcontroller, in i'll text ingredients recipe; , fourth one, in i'll text recipe's howtodo. when text ingredients , howtodo app goes second viewcontroller, when press "add" goes first viewcontroller, , cell receives name of recipe. then, when tap cell, goes fifth viewcontroller, show details (name, image, ingredients listed in tableview , howtodo).
my doubt is: how can retrieve data viewcontrollers?
you have 4 options:
1) nsuserdefaults - small amounts of data
2) store on file system using nsarchiver.
3) sqllite - larger amounts of data.
4) coredata - stores object graphs. advanced steep learning curve.
for details on these methods watch persistence part of following video: https://itunesu.itunes.apple.com/webobjects/lzdirectory.woa/ra/directory/courses/961180099/feed
Comments
Post a Comment