CNContactViewController navigation bar different between versions

后端 未结 5 689
[愿得一人]
[愿得一人] 2021-01-14 00:00

Our tint color is white. Our app uses CNContactViewController. In our version of the app in the store built with Xcode 7 targeting iOS 8 and 9, if you were iOS 9 we called

5条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-14 00:26

    I was having the exact same issue. It definitely seems like an iOS 10 bug. Anyways, I found a work around by setting the navigation bar's translucency to false. Then set the background color of the application's main window to whatever color you want the navigation bar to be.

    Some code snippets:

    UINavigationBar.appearance().isTranslucent = false
    UIApplication.shared.delegate?.window??.backgroundColor = UIColor.red
    

提交回复
热议问题