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)

上一篇 下一篇

猜你喜欢

热点阅读