iOS 修改searchBar TextField PlaceHolder字体颜色


 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)

你可能感兴趣的:(iOS 修改searchBar TextField PlaceHolder字体颜色)