Arun Arun - 6 months ago 41
iOS Question

How set UITextField height?

I am using a UITextField. I want to increase its height. But I did not found any property to increase the height of a UITextField.

How can i achieve this ?

Thanks.

Answer
CGRect frameRect = textField.frame;
frameRect.size.height = 100; // <-- Specify the height you want here.
textField.frame = frameRect;