简体   繁体   中英

Sizing instantantiated view controllers in a UIPageViewController?

My UIPageViewController is reached by an “embed” segue in a container view that is a part of another view controller on my story board. The issue I am having is the container view that is embedding the UIPageViewController is not properly fitting the instantiated view controllers. I want to be able to see the instantiated view controllers in their entirety within the container view.

In case the above wording is unclear, let me try rephrasing it. The UIPageViewController I created has a variable that holds a three view controller instantiated array, but the contents in those instantiated view controllers are not showing up in their entirety in the container view that is embedding the UIPageViewController.

I am new here so please forgive me if I'm unclear on something. Thank you for your time :)

尝试设置clipsToBoundsfalse的容器视图: yourContainerView.clipsToBounds = false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM