Thursday, 3 October 2013

UITextField UITextBorderStyleNone has lines everywhere in iOS7

UITextField UITextBorderStyleNone has lines everywhere in iOS7

I added a UITextField in Interface builder and selected
UITextBorderStyleNone. However the text field has lines in it and
partially around the border. See Image, the textfield in question is on
the left:

Prior to iOS7 I would have expected no border and no lines in that text
field.
I tried setting the border in code
[self.textFieldXX setBorderStyle:UITextBorderStyleNone];
but no change.
When I set a red border (as a test) I see this

[self.textFieldXX.layer setBorderColor:[[UIColor redColor] CGColor]];
[self.textFieldXX.layer setBorderWidth:1.0];
Qn. What gives?
Qn. What are those vertical lines in the text fields?
Qn. How to fix?

No comments:

Post a Comment