UIPageViewController show view following device size. how to force it to fix?

40 Views Asked by At

I implemented 3 container view which will be fill with page view like photo below enter image description here enter image description here enter image description here

but when I install it in iphone the last one in the below following the size of the device so it become smaller. why is that like that? I tried to make a width to make it fix but still nothing change. is anyone know how to do this? Thank you for the answer

this is in the app enter image description here

1

There are 1 best solutions below

1
Q With Only On

found the solution by adding this line of code in my view controller that used as an image in UIPageViewController

self.view.translatesAutoresizingMaskIntoConstraints = false;