修改UISearchBar的Cancel按钮的颜色和文字

 [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setTintColor:[UIColor whiteColor]];
 [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setTitle:@"取消"];

 

posted @ 2017-05-16 13:43  MaricoSun  阅读(1586)  评论(0编辑  收藏  举报