APP后台杀掉后,点击推送通知跳转至指定界面

杀掉后的推送必走方法
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
	// NSDictionary *remoteNotification 做成全局
	self.remoteNotification = [launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey];

	// FIXME: 注意 如果推送栏有多条时,就不要将角标清零0了,
	// [UIApplication sharedApplication].applicationIconBadgeNumber = 0;
	
	// 然后在首页实例化完后 进行跳转
	AppDelegate * app = (AppDelegate *)[UIApplication sharedApplication].delegate;
	// app.remoteNotification
}

你可能感兴趣的:(iOS)