ios - Passing Core Data attributes from viewController to another viewController -
i'm complete beginner in ios , core data. i've followed lynda.com's core data example , still trying grasp gist of everything.
my current build has uitableviewcontroller (let's call resultstvc) passes selected objectatindex uiviewcontroller (displayuservc). wondering there possibility pass details loaded uiviewcontroller (displayuservc) uiviewcontroller (addmoviesvc)?
basically - have save current fetched items in uiviewcontroller (displayuservc) somewhere, or there possibility access loaded in uiviewcontroller (displayuservc) new uiviewcontroller (addmoviesvc)?
thanks guys
the way i've seen done , recommend create singleton managedobjectcontext
accessible multiple vcs. in prepareforsegue
pass in object identifier next vc. vc on load can reference context , load need it. allows vc have moc
in case need changes (i.e. editing/deleting/inserting coredata).
Comments
Post a Comment