开发者

hide Navbar to work in interfice builder iphone

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜