I've set UITabBar as Opaque in Storyboard, but i still seems to be transulcent. When I set my custom UITabBarController with setBarStyle
there is only OpaqueBlack availible.
But that the least of the problem. No matter what I do, content of my view gets positioned under the tab bar, like it ignored by ayutolayout. On Storyboard everything looks fine. something messes up in the runtime?
Oh the most important thing. The problem occurs on iOS7 only!
Here are my ViewController settings in storyboard:
And here is problematic content (UITableView) which gets positioned under the UITabBar on ios7 app. Looks fine in storyboard though:
And finally UITableView constraints:
Putting this on viewDidLoad
, solves the problem:
if (SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"7.0")) {
[self setEdgesForExtendedLayout:UIRectEdgeNone];
}
xCode also provides the programatic capability:
[self setEdgesForExtendedLayout:UIRectEdgeNone];
within your storyboard for a given ViewController via the Extend Edges section:
Simply disable both the Under Top Bars and Under bottom Bars options. They are on by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With