Tuesday 15 September 2015

ios - Access to CoreData without UIApplication -



ios - Access to CoreData without UIApplication -

i want access coredata without uiapplication.sharedapplication() because want manage coredata extension , application. illustration don't want use:

var appdel:appdelegate = (uiapplication.sharedapplication().delegate appdelegate) var context:nsmanagedobjectcontext = appdel.managedobjectcontext!

but utilize without uiapplication...

thank !

i create app delegate doesn't own managed object context. know auto generated core info code this, sense bad form marry core info app delegate.

ios xcode core-data swift

No comments:

Post a Comment