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 iOS 7 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];
What are those lines (vertical and top/bottom border) in the text fields and how to remove them?