UISearchController changing status bar color on invocation

后端 未结 6 1570
执念已碎
执念已碎 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:26

    If you ViewController is inside a TabBarController then -

    Instead of self.definesPresentationContext = YES;

    Use self.tabBarController.definesPresentationContext = YES;

    This worked for me in above scenario.

提交回复
热议问题