UILabel *leftView = [[UILabel alloc] initWithFrame:CGRectMake(0.f, 0.f, 15 / WIDTH_6S_SCALE, 0.f)];
searchLeftView.backgroundColor = [UIColor clearColor];
textField.leftView = searchLeftView;
textField.leftViewMode = UITextFieldViewModeAlways;
textField.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter;
网友评论