使用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
的屏幕截图