AppDelegate*delegate = (AppDelegate*)[[UIApplicationsharedApplication]delegate];
BMBaseTabController*tab = (BMBaseTabController*)delegate.window.rootViewController;
tab.selectedIndex=1;
拿到tabbar 单例,让当前选中变成 要跳转的controller个数
AppDelegate*delegate = (AppDelegate*)[[UIApplicationsharedApplication]delegate];
BMBaseTabController*tab = (BMBaseTabController*)delegate.window.rootViewController;
tab.selectedIndex=1;
拿到tabbar 单例,让当前选中变成 要跳转的controller个数
本文标题:tabBar 切换
本文链接:https://www.haomeiwen.com/subject/dyjqwttx.html
网友评论