How to increase UITextField height in iphone

user2462484 picture user2462484 · Jun 11, 2013 · Viewed 12.1k times · Source

I'm creating UITextField using Xib. That default height is 30. But I want to increase that text field height to 40. Here I had created the outlet and mapped to files owner, then I wrote below line of code.

[textfield setFrame:CGRectMake(100, 200, 400, 100)];

But The height and width are also not changing as per my coding.

Thanks in Advanced.

Answer

Niru Mukund Shah picture Niru Mukund Shah · Jun 11, 2013

You need to follow only one step & you will have your solution.

Checkout this image

Select First option from textfield attribute border style

Enjoy Programming !!