The context frame for presentation in current context is incorrect when a Split View Controller is used
| Originator: | amadour | ||
| Number: | rdar://27985092 | Date Originated: | 24-Aug-2016 10:12 AM |
| Status: | Open | Resolved: | No |
| Product: | iOS SDK | Product Version: | iOS 10 beta 8 |
| Classification: | Reproducible: | Always |
Summary:
Presenting a view controller in the current presentation context when there is a split view controller in the VC hierarchy between the presenting view controller and the context-defining view controller will cause the presentation context frame to be incorrect after device rotation. Instead of being the frame of the context-defining view controller, it will become the frame of the secondary VC of the UISplitViewController.
The attached project demonstrates this.
(Openradar note) Attached project setup :
A container VC A with definesPresentationContext = YES
->containing a UISplitViewController B
->B is presenting a viewController C with modalPresentationStyle = OverCurrentContext
Steps to Reproduce:
Open the attached project, run on an iPad device / simulator.
1. Rotate to landscape
2. Press the button to present
3. Rotate the device to portrait and back to landscape
Expected Results:
The presented VC is still presented over the whole SplitViewController (which defines the context)
Actual Results:
The presented VC is only presented over the secondary part of the SplitViewController
Version:
iOS 10 beta 7
Notes:
Configuration:
Any iPad
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!