UISearchController changing status bar color on invocation

后端 未结 6 1554
执念已碎
执念已碎 2021-02-08 18:09

I have the following code in my app, specifically in viewDidLoad: that sets up my UISearchController.

self.searchController = [[UISear         


        
6条回答
  •  被撕碎了的回忆
    2021-02-08 18:14

    I needed full control over my status bar colour. I use the extensions found here to ensure that the visible view controller is setting the preferred status bar colour.

    For me it was therefore necessary to override UISearchController and override preferredStatusBarStyle and return the style I wanted.

提交回复
热议问题