for (UIView* view in mySearchbar.subviews)
{
for (UIView *v in view.subviews) {
if ( [v isKindOfClass: [UITextField class]] )
{
UITextField *tf = (UITextField *)v;
tf.clearButtonMode = UITextFieldViewModeNever;
}
}
}
网友评论