开发者社区 问答 正文

关于微信里面页面跳转的实现原理

微信 通讯录 点好友 -》详细资料 -》 发消息 (push)-> 聊天界面
但返回的是 聊天记录,而不是 好友的详细资料,这个是怎么实现的?

展开
收起
爵霸 2016-03-13 09:58:52 2933 分享 版权
1 条回答
写回答
取消 提交回答
  • [self.navigationController popToRootViewControllerAnimated:YES];
     [[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithInteger:2] forKey:@"index"];
     [[NSNotificationCenter defaultCenter] postNotificationName:JLCTABBARTOHOME object:nil];

    我的先回rootViewController,再通知tabViewController到指定tab

    2019-07-17 19:01:54
    赞同 展开评论