iOS设置UISearchBar光标的颜色

[[UISearchBar appearance] setTintColor:[UIColor blackColor]];

原文地址:https://www.cnblogs.com/tian-sun/p/5909890.html