UITableView Interfering with Status Bar
问题 I am working on an app that has a UITableViewController that displays a list of values as so: How can I shift the table down such that it doesn't clash with my status bar? It seems that I can't apply any constraints to this scene so I'm at a loss. 回答1: Use the following 3 properties on your UIViewController self.edgesForExtendedLayout=UIRectEdgeNone; self.extendedLayoutIncludesOpaqueBars=NO; self.automaticallyAdjustsScrollViewInsets=NO; 回答2: Set edgesForExtendedLayout for the ViewController