Setup coredata, before loading appdelegate my mainWindow.xib

I have setup coredata in my appDelegate application, but it first loads mainWindow.xib and the corresponding controllers + views in this xib file. These controllers must have a managedObjectContext object to load correctly. And after xib is unlocked, it runs the code in my appDelegate application.

How to configure my source codes and then load mainWIndow.xib? Or just make sure coredata is initialized correctly before deploying my mainWindows.xib?

+3
source share
1 answer

awakeFromNib UIApplicationDelegate . , nib, . . awakeFromNib .

:

  • awakeFromNib [super awakeFromNib], .
  • awakeFromNib undefined, Nib awakeFromNib. , awakeFromNib , Nib .
+3

Source: https://habr.com/ru/post/1716933/


All Articles