注册

这是为什么呢?看图


屏幕快照_2016-05-18_下午5.05_.53_.png


我是自定义的tabbar,点击与人聊天后跳转到聊天界面就这样了,打印当前页面的子控件的frame都是对的,就是显示不正确
已邀请:
在ChatViewController 里  添加
- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    self.tabBarController.tabBar.hidden = YES;
    self.tabBarController.tabBar.bounds = CGRectMake(0, 0, 0, 0);
}
试试
跳转到聊天页面之前,设置下,chatviewcontroller.hidesBottomBarWhenPushed = YES隐藏tabar

要回复问题请先登录注册