Is anyone aware of an issue with iOS5.1 (possibly 5.0) and the
viewController logic of MyLauncher which results in multiple calls to
viewWillAppear and viewDidAppear etc?
This problem is of course causing issues with my code!
Here's log from most recent build of myLauncher on XCode 4.3.2 iOS5.1
simulator:
(open launcher item1 and close it)
2012-03-11 22:52:23.024 MyLauncher[7179:f803] MyLauncherViewController
- viewWillAppear
2012-03-11 22:52:23.074 MyLauncher[7179:f803] MyLauncherViewController
- viewDidAppear
2012-03-11 22:52:24.192 MyLauncher[7179:f803] ItemViewController -
viewWillAppear
2012-03-11 22:52:24.195 MyLauncher[7179:f803] ItemViewController -
viewWillAppear
2012-03-11 22:52:24.197 MyLauncher[7179:f803] ItemViewController -
viewDidAppear
2012-03-11 22:52:24.199 MyLauncher[7179:f803] ItemViewController -
viewDidAppear
2012-03-11 22:52:24.201 MyLauncher[7179:f803] ItemViewController -
viewDidDisappear
2012-03-11 22:52:24.202 MyLauncher[7179:f803] ItemViewController -
viewDidAppear
2012-03-11 22:52:33.326 MyLauncher[7179:f803] ItemViewController -
viewWillDisappear
2012-03-11 22:52:33.327 MyLauncher[7179:f803] ItemViewController -
viewWillDisappear
2012-03-11 22:52:33.328 MyLauncher[7179:f803] ItemViewController -
viewDidDisappear
2012-03-11 22:52:33.328 MyLauncher[7179:f803] MyLauncherViewController
- viewWillAppear
2012-03-11 22:52:33.329 MyLauncher[7179:f803] MyLauncherViewController
- viewDidAppear
2012-03-11 22:52:33.330 MyLauncher[7179:f803] ItemViewController -
viewDidDisappear
I found the following question on StackOverFlow:
http://stackoverflow.com/questions/7830830/ios-different-addsubview-behavior-between-ios-4-3-and-5-0
I think we need to update MyLauncher to account for this change in the
way viewWill & Did appear with ChildViewControllers in iOS5 vs. iOS4!
Thanks!