修改UISearchBar的Cancel按钮的颜色和文字
1 [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setTintColor:[UIColor whiteColor]]; 2 [[UIBarButtonItem appearanceWhenContainedInInstancesOfClasses:@[[UISearchBar class]]] setTitle:@"取消"];
posted on 2018-10-16 16:51 codemaker313 阅读(654) 评论(0) 编辑 收藏 举报