viewDidAppear not sent to UIViewControllers shown inside a UISplitVC

Originator:piercifani
Number:rdar://29824842 Date Originated:
Status: Resolved:
Product:iOS SDK Product Version:
Classification: Reproducible:Always
 
Area:
UIKit

Summary:
When a SplitVC is presented in an iPad, if it is initially being shown in the UISplitViewControllerDisplayModePrimaryHidden and then the user decides to switch to UISplitViewControllerDisplayModeAllVisible, UIKit doesn't send the viewWillAppear message to the newly appeared VC

Steps to Reproduce:
1.- Create two UIViewControllers
2.- Set them as the viewControllers of the SplitViewController
3.- Set the displayMode to .primaryHidden
4.- After some time, or to response to user action, change it to .allVisible

Expected Results:
viewDidAppear is sent to the newly appeared view controller

Actual Results:
viewDidAppear is not sent to the newly appeared viewController

Version:
iOS 10.2

Notes:
You can see this problem in the attached xcodeproject

Configuration:
If you instead are always presenting the splitVC in the .allVisible mode, this problem is not present.

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!