UITableView content overlaps Status Bar when UISearchBar is active

后端 未结 8 628
北海茫月
北海茫月 2021-02-05 02:17

I have a UITableViewController with a UISearchBar and UISearchDisplayController. That exists inside a Container View in a UIViewController which is in a UINavigationController.

8条回答
  •  余生分开走
    2021-02-05 03:03

    I have search this for hours and my final result was to put this line in viewDidLoad: self.extendedLayoutIncludesOpaqueBars = YES;

    Problem solved :)

提交回复
热议问题