Arun Arun - 1 year ago 123
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 ?


Answer Source
CGRect frameRect = textField.frame;
frameRect.size.height = 100; // <-- Specify the height you want here.
textField.frame = frameRect;
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download