-[UIViewController dismissViewControllerAnimated:NO] is not performed immediately on iOS8
| Originator: | fcinter | ||
| Number: | rdar://18464897 | Date Originated: | 26-Sep-2014 |
| Status: | Resolved: | ||
| Product: | Product Version: | iOS 8.0.* | |
| Classification: | Reproducible: |
Summary: `dismissViewControllerAnimated:NO` and `presentViewController:animated:NO` finish the presentation immediately on previous version, but the behavior seems have changed on iOS8. The dismiss operation without animation seems to be finished after 2-3 runloops. This undocumented change has caused some serious side-effects, like unexpected interruption of animation, logic error etc. Steps to Reproduce: //For example: [myController dismissViewControllerAnimated:NO completion:nil]; NSLog(@"presentedViewController: %@", myController.presentedViewController); Expected Results: presentedViewController: nil Actual Results: presentedViewController: <UIViewController: 0x*******> Version: iOS 8.0.2 (12A405)
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!