点击推送通知的横幅时跳转到指定界面
作者:
苏格拉木有底oo | 来源:发表于
2016-03-02 15:05 被阅读121次func application(application: UIApplication, didReceiveRemoteNotification userInfo: [NSObject : AnyObject], fetchCompletionHandler completionHandler: (UIBackgroundFetchResult) -> Void) {
badge = badge + 1
application.applicationIconBadgeNumber = badge
let vc = application.keyWindow?.rootViewController as? UITabBarController
if application.applicationState == UIApplicationState.Inactive {
vc?.selectedIndex = 3
}
}
本文标题:点击推送通知的横幅时跳转到指定界面
本文链接:https://www.haomeiwen.com/subject/oqynkttx.html
网友评论