iOS 修改searchBar TextField PlaceH
2017-11-27 本文已影响20人
Zhui_Do
let textFieldInsideSearchBar=search.value(forKey: "searchField")as?UITextField
textFieldInsideSearchBar?.textColor = UIColor.white
let textFieldInsideSearchBarLabel=textFieldInsideSearchBar!.value(forKey: "placeholderLabel")as?UILabel
textFieldInsideSearchBarLabel?.font = UIFont.systemFont(ofSize: 14)