[[UISearchBar appearance] setTintColor:[UIColor blackColor]]; 转载于:https://www.cnblogs.com/tian-sun/p/5909890.html