去掉搜索框的放大镜
作者:
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
网友评论