- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
UIViewController* currentController = tabBarController;
if ( [currentController modalViewController] != nil )
currentController = [currentController modalViewController];
NotificationViewController *vc = [[NotificationViewController alloc] init];
[currentController presentModalViewController:vc animated:YES];
[vc release];
}
可能不是最漂亮的事情,因为它打开了另一个模态控制器在模态控制器,但它的工作。