您的位置:首页 > 移动开发 > IOS开发

解决iOS跳转页面时,把 tabbar 隐藏了,但是在跳转的时候 还会有 tabbar 的白色痕迹的办法

2015-12-02 10:20 288 查看
在跳转的时候

Login_ViewController *vc = [[Login_ViewController alloc]init];

vc.hidesBottomBarWhenPushed = YES;

[self.navigationController pushViewController:vc animated:YES];

这样就可以解决 了

或者在 将要跳转的页面 初始化一个 UIView

UIView *view = [[UIView alloc]initWithFrame:self.view.frame];

view.backgroundColor = [UIColor whiteColor];

[self.view addSubview:view];

建议用第一种方法
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: