简体   繁体   中英

Orientation change in Presented View Controller not updating Parent View Controller

So I am working on porting my iPhone only app to support iPad as well (universal) but I am having trouble with orientation changes on iPad.

What is happening is when I present a modal view controller from a parent view controller that is in, say Portrait orientation, and then the orientation changes to landscape in the modal, and then the modal is dismissed, the parent view controller's views are incorrectly sized. The parent view's subviews are controlled by auto layout constraints, so I have tried to force them to update on dismissal of the modal view, but haven't had any luck.

The parent's views support both Portrait and Landscape properly (ie when the user rotates the device when in the parent view), this only occurs when a modal's orientation changes.

I've attached some screenshots that hopefully will help explain what I am trying to explain.

Thanks to all in advance.

父视图控制器(纵向)

模态视图控制器(纵向)

模态视图控制器(横向)

返回父视图控制器(横向)

After further investigation, I've found that this was because of the RZTransitions library. I've created an issue on that project here .

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