- (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. 隱藏導航欄
- 5. 隱藏導航欄
- 6. 如何解決Bootstrap導航欄隱藏
- 7. 如何通過CAAnimation隱藏導航欄?
- 8. 如何隱藏導航欄的左鍵?
- 9. 如何使用Jquery隱藏導航欄?
- 10. 如何隱藏導航欄上的UIbarbutton
- 11. 如何在android中隱藏導航欄?
- 12. 如何隱藏Ionic2中的導航欄
- 13. 如何在iPhone中隱藏導航欄?
- 14. 如何隱藏lightSlder的導航欄?
- 15. 隱藏導航條,顯示導航欄
- 16. UISearchDisplayController隱藏導航欄
- 17. 保持導航欄隱藏
- 18. SWIFT:導航欄不隱藏
- 19. Nativescript - 隱藏導航欄(IOS)
- 20. 隱藏導航欄像facebook
- 21. React Native - 隱藏導航欄
- 22. FBUserSettingsViewController隱藏導航欄
- 23. 隱藏導航欄永久
- 24. GMSMapView中隱藏導航欄
- 25. 導航欄隱藏錨點
- 26. 隱藏導航欄旋轉
- 27. 標籤導航欄隱藏
- 28. 隱藏導航欄標題
- 29. IPHONE:ABPeoplePickerNavigationController隱藏導航欄
- 30. 問題隱藏導航欄
你爲什麼要服用的導航欄,如果你想隱藏它? –
也請將問題寫在標準格式中,以便可讀 –