iOS8 SearchController SearchBar提示与占位符文本重叠

时间:2014-11-25 21:16:49

标签: swift ios8 uisearchbar uisearchcontroller

使用Swift在iOS8中使用搜索控制器,我试图向SearchBar添加提示,但它与占位符文本重叠。

searchController.searchBar.barTintColor = UIColor(red: 235.0/255.0, green: 73.0/255.0, blue: 27.0/255.0, alpha: 1.0)
searchController.searchBar.placeholder = "Search your restaurant"
searchController.searchBar.prompt = "Quick Search"

https://www.dropbox.com/s/lawqm0mqxc60fyt/Screenshot%202014-11-26%2002.40.10.png?dl=0

的屏幕截图

error screenshot

0 个答案:

没有答案