iOS tabBar通讯录发消息跳转返回到首页

如微信的跳转,通讯录->好友->发消息,点击返回,返回到首页消息列表

```

JYAppDelegate *delegate = (JYAppDelegate*)[[UIApplication sharedApplication]delegate];

JYTabBarController *tabBarVC = (JYTabBarController*)delegate.window.rootViewController;

tabBarVC.selectedIndex=0;

[self.navigationController popViewControllerAnimated:NO];

JYTestVC *testVC = [[JYTestVCalloc]init];

[tabBarVC.viewControllers[0] pushViewController:testVC animated:YES];

```

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1,Search Bar 怎样去掉背景的颜色(storyboard里只能设置background颜色,可是发现cl...
    以德扶人阅读 2,484评论 2 50
  • *7月8日上午 N:Block :跟一个函数块差不多,会对里面所有的内容的引用计数+1,想要解决就用__block...
    炙冰阅读 2,553评论 1 14
  • //设置尺寸为屏幕尺寸的时候self.window = [[UIWindow alloc] initWithFra...
    LuckTime阅读 838评论 0 0