Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double calls viewWillAppear/viewDidAppear on iOS5 #4

Closed
iomark opened this issue Feb 16, 2012 · 2 comments
Closed

Double calls viewWillAppear/viewDidAppear on iOS5 #4

iomark opened this issue Feb 16, 2012 · 2 comments
Assignees

Comments

@iomark
Copy link

iomark commented Feb 16, 2012

Environment: Xcode 4.2, iOS SDK 5.0, iPad 5.0 Simulator, CoconutKit 1.1.1

Steps for reproducing:

  1. start CoconutKit-dev in iPad Simulator;
  2. select HLSPlaceholderViewController;
  3. tap "Hide with modal"
  4. tap "Close" in appeared modal controller.

Actual result: two pairs viewWillAppear/viewDidAppear.
Expected result: one viewWillAppear and one viewDidAppear.

2012-02-16 16:49:41.008 CoconutKit-dev[14824:15203] [INFO] (-[LifeCycleTestViewController viewWillDisappear:]) - Called for object <LifeCycleTestViewController: 0x8b37770>, animated = YES
2012-02-16 16:49:41.412 CoconutKit-dev[14824:15203] [INFO] (-[LifeCycleTestViewController viewDidDisappear:]) - Called for object <LifeCycleTestViewController: 0x8b37770>, animated = YES
2012-02-16 16:50:03.485 CoconutKit-dev[14824:15203] [INFO] (-[LifeCycleTestViewController shouldAutorotateToInterfaceOrientation:]) - Called, toInterfaceOrientation = UIInterfaceOrientationPortrait
2012-02-16 16:50:03.486 CoconutKit-dev[14824:15203] [INFO] (-[HLSContainerContent addViewToContainerView:inContainerContentStack:]) - View controller's view already added to a container view
2012-02-16 16:50:03.487 CoconutKit-dev[14824:15203] [INFO] (-[LifeCycleTestViewController viewWillAppear:]) - Called for object <LifeCycleTestViewController: 0x8b37770>, animated = YES
2012-02-16 16:50:03.488 CoconutKit-dev[14824:15203] [INFO] (-[LifeCycleTestViewController viewWillAppear:]) - Called for object <LifeCycleTestViewController: 0x8b37770>, animated = YES
2012-02-16 16:50:03.491 CoconutKit-dev[14824:15203] [INFO] (-[LifeCycleTestViewController viewDidAppear:]) - Called for object <LifeCycleTestViewController: 0x8b37770>, animated = YES
2012-02-16 16:50:03.891 CoconutKit-dev[14824:15203] [INFO] (-[LifeCycleTestViewController viewDidAppear:]) - Called for object <LifeCycleTestViewController: 0x8b37770>, animated = YES
@defagos
Copy link
Owner

defagos commented Feb 16, 2012

This is a known iOS 5 issue (documented in the HLSStackController header and in the README file). I already filed a bug report for it: http://openradar.appspot.com/10822029. Thanks for the feedback anyway.

@ghost ghost assigned defagos Feb 17, 2012
@defagos
Copy link
Owner

defagos commented Feb 17, 2012

Fixed in commit 5bd12e8

This was not an iOS 5 bug, but a hidden behavior of addChildViewController:. I should file a radar for lack of documentation, I think :-)

@defagos defagos closed this as completed Feb 17, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants