扫码关注官方订阅号
我有一个tabbarcontroller界面上。点击button跳转到一个新页面,再次点击tabbaritem很奇怪返回到根视图了。这怎么解决我用的是系统的。
闭关修行中......
UITabBarController有个代理- (BOOL)tabBarController:(UITabBarController )tabBarController shouldSelectViewController:(UIViewController )viewController NS_AVAILABLE_IOS(3_0);你实现这个代理,然后判断是不是已经选中这个viewController就行啦,已选中的话return NO
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
UITabBarController有个代理- (BOOL)tabBarController:(UITabBarController )tabBarController shouldSelectViewController:(UIViewController )viewController NS_AVAILABLE_IOS(3_0);
你实现这个代理,然后判断是不是已经选中这个viewController就行啦,已选中的话return NO