2
我已经添加了UISearchBar
。在这我需要输入一个文字说hello World
。但它应该像一个占位符文本,similar to this;如何以编程方式向UISearchBar添加文本
在搜索栏中的图像中,您将看到文本Search
显示。而不是Search
我想提hello world
。
我试过了;
[email protected]"hello World";
但这只是简单地添加一个文本而不是图像中显示的占位符文本。