美文网首页
tabBar 切换

tabBar 切换

作者: 船长One | 来源:发表于2017-02-15 14:26 被阅读114次

AppDelegate*delegate = (AppDelegate*)[[UIApplicationsharedApplication]delegate];

BMBaseTabController*tab = (BMBaseTabController*)delegate.window.rootViewController;

tab.selectedIndex=1;

拿到tabbar 单例,让当前选中变成 要跳转的controller个数

相关文章

网友评论

      本文标题:tabBar 切换

      本文链接:https://www.haomeiwen.com/subject/dyjqwttx.html