iOS拿到推送从而跳转到指定页面
来源:互联网 发布:淘宝达人入口网址 编辑:程序博客网 时间:2024/05/21 19:33
//这是程序杀死后再通过点击通知进入时调用的方法
- (
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>
//App状态为正在前台或者后台运行,那么此函数将被调用
<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>}
0 1
- iOS拿到推送从而跳转到指定页面
- 推送跳转到指定页面
- iOS点击推送消息跳转到指定页面
- iOS开发中点击推送跳转到指定页面
- iOS远程推送点击消息跳转到指定页面
- IOS推送消息处理跳转指定页面
- iOS端-友盟推送如何跳转到指定页面
- iOS开发 极光推送收到通知后跳转到指定页面
- iOS UINavigationController跳转到指定页面
- iOS导航跳转到指定页面
- ios-应用程序跳转到指定的页面
- 集成个推实现推送跳转到指定页面
- iOS 远程推送(极光推送) 根据后台推送内容的不同跳转指定页面(不断更新)
- iOS层级跳转(UINavigationController跳转返回到指定的页面)
- 跳转到指定页面
- 跳转到指定页面
- iOS跳转指定页面
- iOS收到推送后,跳转到某一页面
- keil编译的CODE.RW.RO.ZI的大小说明
- processAnnotations
- Ocaml 中的module system
- 使用Android studio导入项目
- Android EditText的设置
- iOS拿到推送从而跳转到指定页面
- 必应输入法不争气,自力更生
- 8 Tips To Become A Better Front End Developer
- Oracle、MySql、SQLServer 数据分页查询
- XML笔记
- JDBC连接数据库
- 报告称苹果首次成为中国手机市场最大厂商(转载)
- linux开启shh但无法远程连接的问题
- 操作系统中进程简介