Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 iPhone 的界面构建器中,我选择了顶部和底部栏。我可以在查看窗口中查看两个栏,但是当我运行应用程序时,我的 iPhone 模拟器没有显示两个栏。我是否需要配置任何或想要添加任何编码以使其可见。请建议我
您是否通过以下方式在界面构建器的视图上添加了顶部栏和底部栏,或者该栏未添加到视图上。
在您的目标视图控制器中使用此代码
-(void) viewWillAppear:(BOOL)animated { [super viewWillAppear:YES]; self.navigationController.navigationBarHidden = NO; }