UIAlertView cannot be dismissed if no cancel string is given
| Originator: | peter.robinett | ||
| Number: | rdar://20406925 | Date Originated: | 2015-04-02 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 7.1.1 |
| Classification: | Reproducible: | Always |
Summary:
Displaying a UIAlertView without any button titles means that no buttons are shown and the alert cannot be dismissed.
Steps to Reproduce:
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Test" message:@"Body" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil];
[alert show];
Expected Results:
The alert is shown and a cancel button is shown, whether with no text or default ('Cancel') text.
Actual Results:
No cancel button is shown and the alert view cannot be dismissed, meaning the app has to be killed.
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!