设置UITextfield光标颜色
self.editTF.tintColor = ColorRGB(255, 171, 52);
设置UITextfield文本向右偏移
self.editTF.leftView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 10, 0)];
self.editTF.leftViewMode = UITextFieldViewModeAlways;
自定义UITextfield清除按钮
UIButton *cleanBtn = [self valueForKey:@"_clearButton"];
[cleanBtn setImage:[UIImage imageNamed:@"edit_delete"] forState:UIControlStateNormal];
网友评论