简体   繁体   English

没有导航栏iOS7 +应用

[英]No Navigation bar iOS7+ app

What is the best way to build an app without navigation bar ? 在没有导航栏的情况下构建应用的最佳方法是什么? I'm going to work on an app from scratch which includes about few navigation but there is no navigation bar. 我将从头开始开发一个应用程序,该应用程序包含大约几个导航,但没有导航栏。 Definitely there will be navigation controller. 肯定会有导航控制器。

I know we can hide navigation bar by setting hidden property as YES. 我知道我们可以通过将hidden属性设置为YES来隐藏导航栏。 Is there any best recommended approach to build such kind of app ? 是否有推荐的最佳方法来构建此类应用程序?

只需注意不要将视图内容放在状态栏下方(也就是说,如果您不隐藏状态栏),而是将后退按钮放置在手动弹出视图控制器的位置。

Go to your plist and do the below 转到您的列表并执行以下操作

在此处输入图片说明

one more thing on add the below line 在添加以下行的另一件事

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [_navigationController setNavigationBarHidden:YES animated:NO];
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM