TagUITextField

Move View/ScrollView to keep TextField visible when keyboard appears!

M

There is a very common but tricky part comes while handling textfields position when keyboard appears. Its sometimes become headache for developers to handle such small but tricky issue. When keyboard appears then some textfields get covered and user can’t see while editing it. There are some solutions to handle this but many of them works only for the first time. And then doesn’t...

How to make UITextField’s text selected programmatically ?

H

  Hi, For making UITextField’s text selected programmatically you need to set the UITextField’s delegate linke below : txt.delegate = self; and then put following code in textFieldDidBeginEditing -(void)textFieldDidBeginEditing:(UITextField *)textField { [textField selectAll:self]; } And don’t forget to add delegate in .h @interface ViewController : UIViewController...

Category