UIAlertView displays message in bold font if title is set to nil
| Originator: | sven.muennich | ||
| Number: | rdar://18305933 | Date Originated: | 11-Sep-2014 06:14 PM |
| Status: | Duplicate of 17714680 (Open) | Resolved: | |
| Product: | iOS | Product Version: | iOS8 (12A365) |
| Classification: | Bug | Reproducible: | Always |
Summary:
When creating and showing an UIAlertView using initWithTitle:message:delegate:cancelButtonTitle:otherButtonTitles:, setting the title to nil and the message to some random string, the message is displayed in the same bold font the title would normally be displayed. This results in an alert with only one label with a bold font, displaying the message. Furthermore the label is not vertically centered, but is missing margin at the top.
Steps to reproduce:
1. Create and show an alert using the following code.
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:nil
message:@"Some string..."
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
Expected result:
An alert with a vertically centered label showing the message in a regular font.
Actual result:
An alert with a label, which is sticked to the top of the alert, showing the message in a bold font.
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!