有人遇到此问题? 当我从UIViewController
推到故事板基地viewController
和隐藏BottomBar
,故事板基地viewController
首先来到一个白色的底部,故事板基地viewController
的底部控制一次下移,覆盖白色的空白空间。有些朋友知道它为什么会出现?以及如何解决这个问题?问:我遇到了导航控制器推送问题
的代码是在这里:
InformationCollectionViewController *info = [self.sb instantiateViewControllerWithIdentifier:@"InformationCollectionViewController"];
info.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:info animated:YES];
BTW:如果设置[self.navigationController pushViewController:info animated:NO];
不会有显示问题。
你的回答是对的,但是,因为我使用autolayout来布置我的视图,所以有2个视图基于底部布局指南,我应该如何解决这个问题? – lme
@LeoMaer当你添加布局时,你可以选择你想要布局的布局。 – Lumialxk
2个视图的底部约束。 – lme