UIActivityViewController: Cancel leaves UI unresponsive
| Originator: | futuretap | ||
| Number: | rdar://17456870 | Date Originated: | 25-Jun-2014 10:27 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | 8.0 beta 2 |
| Classification: | Crash/Hang | Reproducible: | Always |
Summary:
When a UIActivityViewController sheet is cancelled, the sheet is dismissed but the app UI is dead. The issue only occurs when building under Xcode 5.1.1. It works as expected using Xcode6-Beta2.
Steps to Reproduce:
- In Xcode 5.1.1, create an app that opens a UIViewController:
- (IBAction)share:(id)sender {
UIActivityViewController* activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[@"abc"] applicationActivities:nil];
[self presentViewController:activityViewController animated:YES completion:nil];
}
- Execute the share: action (i.e. by a button).
- Tap "Cancel"
Expected Results:
The UI should work normally after the UIActivityViewController is dismissed
Actual Results:
The UI is dead.
Version:
iOS 8.0 beta 2
Notes:
This is a regression from iOS 7.1.1.
(lldb) po [[UIApplication sharedApplication] keyWindow]
<_UIAlertControllerShimPresenterWindow: 0x13ee22140; frame = (0 0; 320 568); opaque = NO; gestureRecognizers = <NSArray: 0x1700509b0>; layer = <UIWindowLayer: 0x178220080>>
This reveals that the keyWindow isn't correctly reset after dismissing UIAVC.
Configuration:
iPhone 5s
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!
Problem still occurs in iOS 8.0 beta 3.