iOS UIPageViewController child view under Bottom Bar

608 views Asked by At

I had an UIPageViewController embedded in a NavigationController embedded an TabBarController. I supposed every child view of the UIPageViewController fits the size within the UITabBarViewController.

The first child view looks fine:

enter image description here

Switch to the next (vertically), it's view suddenly resizes and the view length expands over the bottom bar:

enter image description here

Actually it's not under the bottom bar but clipped to that size (which means if you pull up the view you still cannot see the whole but the cut text).

I did unchecked every related view controller's Under Bottom Bar & Adjust Scroll View Inset but nothing works.

Any suggestion would be appreciated.

1

There are 1 answers

0
Ram Suthar On

Try this in table view controller viewDidLoad() method.

self.extendedLayoutIncludesOpaqueBars = NO;

OR you can set property in Interface Builder: Uncheck Extend Edges: Under Bottom Bars, Under Opaque Bars.