iphoneuitextfieldxiboutlet

How to increase UITextField height in iphone


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.


Solution

  • 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 !!