【发布时间】:2014-12-03 09:17:43
【问题描述】:
我使用了故事板。该应用是基于标签栏控制器的。
点击推送通知时,我想从情节提要中打开特定的“通知事件”视图控制器。”
我不知道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];
【问题讨论】:
-
朋友们,有谁能帮帮我吗?
-
你的意思是在收到远程通知后要更改 ViewController 吗?
-
你完全是老兄。 @horst
标签: ios objective-c iphone xcode ios7