//设置searchBar取消按钮 UIView *subVie = [searchbar superview]; for (id vie in [subVie subviews]) { if ([vie isKindOfClass:[UIButton class]]) { UIButton *btn = (UIButton *)vie; [btn setTitle:@"取消" forState:UIControlStateNormal]; } }
时间: 2024-10-13 19:47:47