开发者

UITextField responder line is overlapping with border, How to position responder?

开发者 https://www.devze.com 2023-03-22 02:53 出处:网络
Blue colored tex开发者_运维技巧t positioning line is overlapping with border in UITextField. Please help me out.

UITextField responder line is overlapping with border, How to position responder?

Blue colored tex开发者_运维技巧t positioning line is overlapping with border in UITextField. Please help me out.

Thanks in advance.

Naveen.


Create a padding and add to the uitextfield as follows:

UIView *paddingView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 5, 20)];
yourtextfield.leftView = unpaddingView;
yourtextfield.leftViewMode = UITextFieldViewModeAlways;

Release the padding view

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号