开发者

hide Navbar to work in interfice builder iphone

开发者 https://www.devze.com 2023-03-21 07:25 出处:网络
I\'m building a view in my iOS app with Xcode. I\'m using the interfice builder and because it\'s a navigat开发者_如何学Pythonion controller, the navigation bar appears.

I'm building a view in my iOS app with Xcode. I'm using the interfice builder and because it's a navigat开发者_如何学Pythonion controller, the navigation bar appears. With code, I hide the navigation bar using:

[self.navigationController setNavigationBarHidden:YES animated:YES];

It works ok, but in interfice builder it keeps showing. How can I hide it in interfice builder to draw my view easily?


Within the inspector on IB, there is a navigation bar dropdown. You should be able to simply change that to none, and it will go away from your view in IB.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号