0

I have a MainViewController which has delegate and datasource for an iCarousel item. Everything works fine while working within the app.

Inside didReceiveRemoteNotification method I coded below line

[[NSNotificationCenter defaultCenter] postNotificationName:@"fetchAndLoad" object:nil]; 

This calls a MainViewController function which in turn calls the reloadData function for iCarousel. I'm sure that fetchAndLoad is being called, but the reloadData is not. The reloadData is being called only when the app enters foreground again.

Does this problem have something to do with the MainViewController delegate and how can I solve this?

vaibhav
  • 4,038
  • 1
  • 21
  • 51
  • didReceiveRemoteNotification was deprecated – Roman Podymov Oct 20 '16 at 14:51
  • excuse me, i meant " -(void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler" – Jeroen Geurts Oct 20 '16 at 14:59
  • To clarify: MainViewController has some delegate methods, the reloadData function is an iCarousel function. Any suggestions? – Jeroen Geurts Oct 21 '16 at 19:43

0 Answers0