iOS 7: UITableView shows under status bar
The first screen of my application is a
Solution:
In your viewDidLoad add this lines:
UITableViewController
without a navigation bar, which means that the content flows under the status bar so there's a lot of text collisions. I've adjusted both the properties for Under top bars
and Adjust scroll view insets
which do actually stop it from scrolling under, but at the cost of keeping the top of the table view under. I've attempted to set the UITableView
frame to offset by 20 pixels, but it doesn't appear to take effect.Solution:
In your viewDidLoad add this lines:
self.edgesForExtendedLayout=UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars=NO;
self.automaticallyAdjustsScrollViewInsets=NO;
iOS 7: UITableView shows under status bar
Reviewed by Unknown
on
11:48
Rating:
Leave only
ResponderEliminarself.extendedLayoutIncludesOpaqueBars=NO;
self.automaticallyAdjustsScrollViewInsets=NO;
not works for me in ios 9 ((
ResponderEliminar