as application more of scratch pad rather designed i'm looking @ added core data support.
instead of try plumb straight in created new project (this time checking use core data option) see 'default' code thats generated.
doing quick reading i'm fine creating model , entity side of things. , degree understand managed object context.
however, don't @ stage moc etc created in app delegate. app using storyboarding, have dropped tableviewcontroller on , embedded navigation controller. tableviewcontroller linked subclass of uitableviewcontroller create.
storyboard looks like:
->nav controller->tvc
generated code created , setup moc in appdelegate, how access in tvc?
have passed along tvc (how??) or used global variable?
if add view storyboard e.g.:
->nav controller->tvc->viewcontroller
have pushed down chain (again how??) or before used global variable?
in opinion (and i've seen others share view), putting core data boiler plate in app delegate horrible way go. need core data stuff thread isolated, app delegate isn't necessarily.
recommend looking @ magicalrecord, it's great package i've been using.
Forums iPhone, iPad, and iPod Touch iOS Programming
- iPhone
- Mac OS & System Software
- iPad
- Apple Watch
- Notebooks
- iTunes
- Apple ID
- iCloud
- Desktop Computers
- Apple Music
- Professional Applications
- iPod
- iWork
- Apple TV
- iLife
- Wireless
No comments:
Post a Comment