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

2017-06-06  本文已影响0人  Persistence__

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

```

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];

```

上一篇下一篇

猜你喜欢

热点阅读