В настоящее время я имею регулярную границу. Я бы хотел, чтобы имел только верхнюю и нижнюю границу.
Как это сделать?
Используя свойство UITextField
layer
, у меня есть следующий код:
self.layer.borderColor = [[UIColor colorWithRed:160/255.0f green:160/255.0f blue:160/255.0f alpha:1.0f] CGColor];
self.layer.borderWidth = 4.0f;
У меня есть способ заставить его работать , делая мой UITextField длинным, так что пользователь не видит левую и правую границы, но мне просто интересно, было ли лучше, хакерский способ сделать это?
У меня проверены документы, а изменение UITextField
borderStyle
не имеет этой опции.
С
Первый таймер iOS