美文网首页
去掉搜索框的放大镜

去掉搜索框的放大镜

作者: Pierre_ | 来源:发表于2015-07-26 10:47 被阅读195次
UITextField *txfSearchField = [self valueForKey:@"_searchField"];    [txfSearchField setBackgroundColor:[UIColor whiteColor]];    [txfSearchField setLeftViewMode:UITextFieldViewModeNever];    [txfSearchField setRightViewMode:UITextFieldViewModeNever];    [txfSearchField setBackground:[UIImage imageNamed:@""]];    [txfSearchField setBorderStyle:UITextBorderStyleNone];    //txfSearchField.layer.borderWidth = 8.0f;    //txfSearchField.layer.cornerRadius = 10.0f;    txfSearchField.layer.borderColor = [UIColor clearColor].CGColor;    txfSearchField.clearButtonMode=UITextFieldViewModeNever;}

相关文章

网友评论

      本文标题:去掉搜索框的放大镜

      本文链接:https://www.haomeiwen.com/subject/fxdmqttx.html