views:

22

answers:

2

i want to set first text on my UISearchBar -the text is "Search"-, and the text will disappear when user start typing. just like this:

alt text alt text

how it could be.??? thanx

A: 

use placeholder property to set your grayish text that get disappears while text is written on it

Suriya
thanx guys it works properly.. :)
Imam Arief W
Voteup is the best way to thanks.. :)
Suriya
A: 

that's the placeholder text, you can set it in Interface Builder, or programmatically with UISearchBar's placeholder property

Zydeco
thanx guys it works properly.. :)
Imam Arief W