2
我已經添加了UISearchBar
。在這我需要輸入一個文字說hello World
。但它應該像一個佔位符文本,similar to this;如何以編程方式向UISearchBar添加文本
在搜索欄中的圖像中,您將看到文本Search
顯示。而不是Search
我想提hello world
。
我試過了;
[email protected]"hello World";
但這只是簡單地添加一個文本而不是圖像中顯示的佔位符文本。