viewWillAppear is not called
Originator: | Krizai | ||
Number: | rdar://32106539 | Date Originated: | |
Status: | Open | Resolved: | |
Product: | Product Version: | ||
Classification: | Reproducible: |
Area: UIKit Summary: viewWillAppear is not called in following setup: - There is a Tab controller - On non initial tab, there is a TableViewController - One of the cells will embed another ViewController When the tab will be switched to the one with the TableView. The viewWillAppear of the controller embedded in the cell won't be called. Steps to Reproduce: 1. Run the test attached sample app 2. Switch the tab to the second one 3. Check the logs Expected Results: viewDidLoad and viewWillAppear of both TableViewController and Cell ViewController are called. Actual Results: no viewWillAppear for the Cell : 2017-05-10 14:20:01.867 TabsTest[96630:4313524] Table view controller viewDidLoad called 2017-05-10 14:20:01.867 TabsTest[96630:4313524] Table view controller viewWillAppear called 2017-05-10 14:20:01.876 TabsTest[96630:4313524] Cell view controller viewDidLoad called Version: iOS 10.3 Notes: Configuration: iPhone Simulator ( iPhone SE)
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!