标签:
别说话,直接上代码
for (id obj in [searchBar subviews]) {
if ([obj isKindOfClass:[UIView class]]) {
for (id obj2 in [obj subviews]) {
if ([obj2 isKindOfClass:[UIButton class]]) {
UIButton *btn = (UIButton *)obj2;
[btn setTitle:@"取消" forState:UIControlStateNormal];
}
}
}
}
如何将UISearchBar上"Cancel"按钮改为”取消“?
标签:
原文地址:http://www.cnblogs.com/IceBlack-Tea-developer/p/5260006.html