- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
// Override point for customization after application launch.
MasterViewController *masterViewController = [[[MasterViewController alloc] initWithNibName:@"MasterViewController" bundle:nil] autorelease];
self.navigationController = [[[UINavigationController alloc] initWithRootViewController:masterViewController] autorelease];
self.window.rootViewController = self.navigationController;
[self.window makeKeyAndVisible];
return YES;
Q
如何隱藏導航欄?
-4
A
回答
0
試試這個刪除導航欄。
(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease]; // Override point for customization after application launch. MasterViewController *masterViewController = [[[MasterViewController alloc] initWithNibName:@"MasterViewController" bundle:nil] autorelease]; self.window.rootViewController = masterViewController; [self.window makeKeyAndVisible]; return YES; }
+0
問題已解決,thx – Solebeam
0
設置navigationBarHidden
屬性以隱藏導航條。有關參考,請參閱UINavigationController文檔。
將以下語句添加到您的didFinishLaunchingWithOptions
方法中。
[self.navigationController setNavigationBarHidden:YES animated:YES];
+0
您的回答沒有解決問題,但回答謝謝 – Solebeam
相關問題
- 1. 如何隱藏導航欄?
- 2. 隱藏導航欄?
- 3. 隱藏導航欄
- 4. 如何隱藏lightSlder的導航欄?
- 5. 如何隱藏導航欄的左鍵?
- 6. 如何使用Jquery隱藏導航欄?
- 7. 如何在android中隱藏導航欄?
- 8. 如何隱藏Ionic2中的導航欄
- 9. 如何通過CAAnimation隱藏導航欄?
- 10. 如何解決Bootstrap導航欄隱藏
- 11. 如何隱藏導航欄上的UIbarbutton
- 12. 隱藏導航條,顯示導航欄
- 13. 隱藏導航欄旋轉
- 14. 問題隱藏導航欄
- 15. FBUserSettingsViewController隱藏導航欄
- 16. SFSafariViewController:隱藏導航欄
- 17. 隱藏導航欄標題
- 18. IPHONE:ABPeoplePickerNavigationController隱藏導航欄
- 19. Nativescript - 隱藏導航欄(IOS)
- 20. 如何隱藏和取消隱藏導航欄項目?
- 21. UITableViewController隱藏導航欄[搜索欄]
- 22. 如何隱藏導航欄,當我從導航控制器推?
- 23. 導航欄圖片隱藏自定義導航欄按鈕
- 24. iOS導航欄:隱藏導航欄和平滑過渡
- 25. 在flex中隱藏導航欄
- 26. 加速器鈦 - 隱藏導航欄android
- 27. uinavigationcontroller導航欄始終隱藏
- 28. 隱藏導航欄不工作
- 29. 無法隱藏導航欄時刷
- 30. 在故事板中隱藏導航欄
你爲什麼要服用的導航欄,如果你想隱藏它? –
也請將問題寫在標準格式中,以便可讀 –