tabBar 切换

2017-02-15  本文已影响114人  船长One

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

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

tab.selectedIndex=1;

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

上一篇 下一篇

猜你喜欢

热点阅读