我已經使用故事板。該應用程序是基於標籤欄控制器。 。從didReceiveRemoteNotification加載故事板視圖控制器
當點擊推送通知,我想從故事板打開特定的「通知事件」視圖控制器」 我不知道什麼樣的代碼進入didReceiveRemoteNotification
這裏我的代碼是:
NSString *notification = [[userInfo valueForKey:@"aps"] valueForKey:@"alert"];
Dashboard *ds = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"Dashboard"] ;
NotificationTable *nt = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"NotificationBoard"] ;
UIStoryboardSegue *segue = [UIStoryboardSegue segueWithIdentifier:@"NotificationBoardTable"
source:ds
destination:nt
performHandler:^{
}];
[ds performSegueWithIdentifier:@"NotificationBoardTable" sender:ds];
的朋友,可以在任何一請幫助我嗎? – 2014-12-03 09:46:31
你的意思是你想在接收遠程通知後改變ViewController嗎? – Horst 2014-12-03 10:46:27
ya exaclty dude。 @horst – 2014-12-03 10:49:31