I have a UITabBarController
with two UITableViews
, all were created in the storyboard.
The problem is that in the second tableview the first few lines of the table are under the top bar, this doesn't happens with the first tableview, even if I change the order of the views the first will work perfectly and the second will present the problem, so the one that was working perfectly now presents the same problem because is the second item of the tabbar controller.
I don't have much code to show because I didn't create the tableviews programatically.
Not sure exactly based on your description, but a couple possibilities come to mind:
Check your view controller attributes inspector in IB. Look for "Extend Edges" option under View Controller, and uncheck "Under Top Bars" if it is checked.
In ios7, there appears to be a behavior in UIScrollView and all subclasses whereby the content inset and offset is automatically adjusted, sometimes not very well. You can try disabling that either in code or IB (see link for how: iOS 7 -- navigationController is setting the contentInset and ContentOffset of my UIScrollView)
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