views:

127

answers:

2

Hi,

How to change the UITextField to oval shape ?

link shows a screenshot of that

+1  A: 

If you mean Round Rect as oval then try this

theTextField.borderStyle=UITextBorderStyleRoundedRect;

Edit

See this Link.here they have created the round rect text field using quartz core framework.

All the best.

Warrior
ya. I tried this but the ends are not in this shape [____] . .i want the shape to be (____)
thndrkiss
If you created the text field by interface builder and set property of border as roundrect in inspector window.
Warrior
No i am actually using a tableview and creating the textboxes via code without IB . .
thndrkiss
I think you can use only the inbuilt border style.
Warrior
hmm .. I remember seeing an app from medscape which has a oval shaped box. . . so I thought there should be some way !
thndrkiss
I think you referring to the search bar.
Warrior
I just now saw some 15 screen shots of that app where text field is roundrect and search bar is oval.
Warrior
thanks for the concern. I have edited my question and added a link which shows the actual screen shot of that app.
thndrkiss
A: 

i used a image which looks like a oval textbox as a backgroun.

link

thndrkiss