Xcode6.1 iOS8 导航控制器popToRootViewContriller问题,求大神指点啊
韩桃叶 2014-10-21 07:17:04 Xcode6.1 iOS8 导航控制器popToRootViewController
我自定义了一个tabBarController 系统的tabbar上面的UITabbarButton 删了, 吧自定义的tabbar加在了系统的tabbar上面,开始运行正常, 但是当使用PopToRootViewController 时, tabbar上系统自带的UITabBarButton又出现了。。求解啊。。
/**
* 删除系统自带的tabbarButton
*/
- (void)removeSystemTabBarItem
{
for (UIView *subView in self.tabBar.subviews) {
if ([subView isKindOfClass:[UIControl class]]) {
subView.hidden = YES;
[subView removeFromSuperview];
}
}
}
在tabbarController 删除了
运行正常, 但是当 执行完
[self.navigationController popToRootViewControllerAnimated:YES];
后就出现了这种叠加的这种情况。