How can I make a UITextField
which is round and looks similar to the one used when we want to bookmark something in iOS? I believe you have to edit the text field programmatically or something.
Asked
Active
Viewed 1,706 times
1

jscs
- 63,694
- 13
- 151
- 195

Tushar Chutani
- 1,522
- 5
- 27
- 57
-
possible duplicate of [How do I change the UITextField so it looks like the Search Text Field?](http://stackoverflow.com/questions/1968118/how-do-i-change-the-uitextfield-so-it-looks-like-the-search-text-field) – jscs Jun 10 '11 at 01:56
-
I think your answer is here ! . In that example he designs his own rounded UITextField. Good Luck ! – Legolas Jun 09 '11 at 23:57
3 Answers
3
Use UITextBorderStyleRoundedRect
, either by setting this in the IB or programmatically.

PengOne
- 48,188
- 17
- 130
- 149
-
But i want something similar to what is done in safari for ios bookmarking – Tushar Chutani Jun 10 '11 at 07:38
1
I'm a little new to iOS and was trying to figure out the same thing and Google brought up this first, so I thought I'd point other newbies to this related question: How can i make a more rounded UITextField? Like the search field in Safari on iPad. From that question I learned that what I wanted was a UISearchBar (which can be added in the IB). You'll probably have to pull off some sort of trickery if you don't like the magnifying glass, but otherwise that's it.