首页 > 其他 > 详细

tabBarController 点击bar 传值

时间:2017-04-17 19:55:41      阅读:155      评论:0      收藏:0      [点我收藏+]
//没有导航
//                    OrderViewController *orderVC = [self.tabBarController.viewControllers objectAtIndex:2];

//有导航的
                    UINavigationController *temp = (UINavigationController *)[super.tabBarController.viewControllers objectAtIndex:2];
                    OrderViewController *orderVC = (OrderViewController *)temp.topViewController;
                    orderVC.currentIndex = 1;//选中待付款按钮
                    self.tabBarController.selectedIndex = 2;//跳转

 

tabBarController 点击bar 传值

原文:http://www.cnblogs.com/justqi/p/6724417.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!