//这是程序杀死后再通过点击通知进入时调用的方法
-
(
BOOL
)application:(UIApplication
*)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions{
<br>
<br>
if
(launchOptions)
<br>
<br>
{
<br>
<br>
[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];
<br>
<br>
NSDictionary *userInfo = [launchOptions objectForKey: UIApplicationLaunchOptionsRemoteNotificationKey];
<br>
<br>
[self presentViewControllerWithUserInfo:userInfo];
<br>
<br>
}
<br>
<br>}
<br>
<br>
<br>
<br>
<br>
<br>-
(
void
)application:(UIApplication
*)application didReceiveRemoteNotification:(NSDictionary *)userInfo
<br>
<br>{
<br>
<br>
<br>
<br>
if
(application.applicationState != UIApplicationStateActive)
<br>
<br>
{
<br>
<br>
<br>
<br>
[self presentViewControllerWithUserInfo:userInfo];
<br>
<br>
<br>
<br>
}
<br>
<br>}
<br>
<br>
<br>
<br>#pragma
mark - 消息跳转页面
<br>
<br>-
(
void
)presentViewControllerWithUserInfo:(NSDictionary
*)userInfo
<br>
<br>{
<br>
<br>
<br>
<br>[self.window.rootViewController
presentViewController:fyfNavCtrl animated:YES completion:^{
<br>
<br>
<br>
<br>
}];
<br>
<br>}