Multithreading and NSNotification in iOS -
i wrote few functions in appdelegate.m this: - (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions { debugmethod(); self.weibostatusesdatabasecontext = [self createmainqueuemanagedobjectcontext]; return yes; } - (void)setweibostatusesdatabasecontext:(nsmanagedobjectcontext *)weibostatusesdatabasecontext { debugmethod(); _weibostatusesdatabasecontext = weibostatusesdatabasecontext; nsdictionary *userinfo = self.weibostatusesdatabasecontext ? @{weibostatusesdatabaseavailabilitycontext : self.weibostatusesdatabasecontext} : nil; [[nsnotificationcenter defaultcenter] postnotificationname:weibostatusesdatabaseavailabilitynotification object:self userinfo:userinfo]; } and wrote function in mainpagecdtvc.m coredata tableviewcontroller : - (void)awakefromnib { debugmethod(); [[nsnotificationce...