收到远程通知时没有代表

时间:2016-10-20 14:37:29

标签: objective-c delegates icarousel remote-notifications

我有一个MainViewController,其中包含delegatedatasource的iCarousel项目。在应用程序中工作时一切正常。

我在{<1}}内部编码的方法

didReceiveRemoteNotification

这会调用[[NSNotificationCenter defaultCenter] postNotificationName:@"fetchAndLoad" object:nil]; 函数,该函数又调用iCarousel的MainViewController函数。我确定正在调用fetchAndLoad,但reloadData不是。仅当应用程序再次进入前台时才会调用reloadData。

此问题是否与reloadData委托有关,我该如何解决?

0 个答案:

没有答案