See the link below for my previous answer. I hope you understand how to do this. Only one UITextField, no third-party library uses.
- fooobar.com/questions/1647566/...
-
myLable textField, viewDidLoad()
self.myLable.userInteractionEnabled=true;
UITapGestureRecognizer *LongPressgesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapPressgesture:)];
tapPressgesture.delegate=self;
[self.myLable addGestureRecognizer:tapPressgesture];
- (void)tapPressgesture:(UITapPressGestureRecognizer *)recognizer
{
[self.txtField becomeFirstResponder];
}
, , backgroundField background image . UITextField border UITextBorderStyleNone - , .
:)