2017-10-05 5 views
0

私のビュー用のナビゲーションコントローラによって作成されたナビゲーションバーがあります。これらは、コンテナのサイドメニューからロードされます。ナビゲーションバーがサイドメニューからクリックされたときにステータスバーの下に表示されませんか?

アイテムをクリックすると、ナビゲーションコントローラとビューが読み込まれますが、ステータスバーに空白の背景色が表示されます。

どのように私はこの問題を診断できますか?私は最高のさてあなたはここに一つのことを行方不明とUINavigationBarのthatsのsetBackgroundImageさ

enter image description here

enter image description here enter image description here

enter image description here

UINavigationBar.appearance().tintColor = UIColor.white 
    UINavigationBar.appearance().barTintColor = UIColor().appThemeColour() 
    UINavigationBar.appearance().isTranslucent = false 
    UINavigationBar.appearance().shadowImage = UIImage() 
    UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName : UIColor.white] 
    UIApplication.shared.statusBarStyle = .lightContent 
+0

サイドメニューポッドを使用していますか? –

+0

あなたはどこかにnav bar shadowを取り除いていますか? – ankit

+0

imはinteractivesidemenuを使用していますhttps://github.com/handsomecode/InteractiveSideMenu – jackdm

答えて

0

を説明するために、いくつかのビューデバッガのスクリーンショットが含まれています。

UINavigationBar.appearance().tintColor = UIColor.white 
    UINavigationBar.appearance().barTintColor = UIColor().appThemeColour() 
    UINavigationBar.appearance().isTranslucent = false 
    UINavigationBar.appearance().shadowImage = UIImage() 
    UINavigationBar.appearance().setBackgroundImage(UIImage(), for: .default) 
    UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName : UIColor.white] 
    UIApplication.shared.statusBarStyle = .lightContent 
+0

残念ながら問題には何の影響もありませんでした。私はそれが影響を与えるサイドデー – jackdm

関連する問題