UITextField's clear button has wrong vertical position when enclosed in UIAlertView
Originator: | arkadiusz.holko | ||
Number: | rdar://15803204 | Date Originated: | 13-Jan-2014 11:36 AM |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | 7.0 and 7.1 beta 3 |
Classification: | UI/Usability | Reproducible: | Always |
Summary: As can be seen in the attached screenshot, the clear button has a wrong vertical position when it's used in the UITextField enclosed in UIAlertView by setting alertViewStyle to UIAlertViewStylePlainTextInput. Steps to Reproduce: 1. Create a new Single View Application 2. Add the following code in viewDidLoad UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"Title" message:nil delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil]; av.alertViewStyle = UIAlertViewStylePlainTextInput; UITextField *textField = [av textFieldAtIndex:0]; textField.text = @"Lorem ipsum"; textField.clearButtonMode = UITextFieldViewModeAlways; [av show]; 3. Run the application Expected Results: Vertical position of the clear button should be the same as when UITextField is used outside of the alert view. Actual Results: Vertical position of the clear button is too close to the top. Version: iOS 7.0 and 7.1 beta 3 Notes: Configuration: Attachments: 'Screenshot 2014-01-13 11.28.00.png' was successfully uploaded.
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!