- (void)application:(UIApplication *)app didReceiveLocalNotification:(UILocalNotification *)notif {
// Handle the notificaton when the app is running
NSLog(@"Recieved Notification %@",notif);
NSLog(@"local notifications count = %d", [[[UIApplication sharedApplication] scheduledLocalNotifications] count]);
}
這是來自應用程序委託的方法,我需要在通知到達時重新載入表視圖。如果當前視圖是tableViewController,則不會重新載入iOS TableView
我該如何實現reloadData,因爲如果我編寫「[TableViewController.tableView reloadData]」,Xcode將不會接受;
Bingo !!!!!!!男人,你剛剛解決了我現在想要的一個星期的問題。超級謝謝你。真。我無法解釋我現在有多開心。 –
你的歡迎...總是開心:) – Abhishek
很棒..保存了很多時間。我花了1天半... – wasim