首先检查self.view.fram是否是宽高和屏幕的宽高一样
- (void)viewWillDisappear:(BOOL)animated
{
[super viewWillDisappear:animated];
NSLog(@"--%f", kScreenHeight);
// 返回后还要恢复 self.tabBarController.tabBar.frame = CGRectMake(0, kScreenHeight - 49, kScreenWidth, 49);
}
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
// 写这个就可以解决
self.tabBarController.tabBar.frame = CGRectZero;
}