Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView Interfering with Status Bar

I am working on an app that has a UITableViewController that displays a list of values as so:

ScreenShot

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.

like image 241
user3185748 Avatar asked Dec 28 '14 20:12

user3185748


1 Answers

Use the following 3 properties on your UIViewController

self.edgesForExtendedLayout=UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars=NO;
self.automaticallyAdjustsScrollViewInsets=NO;
like image 133
Rick Avatar answered Sep 21 '22 05:09

Rick