//最左侧加图片是以下代码 右侧类似 UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"comment_write"]]; _textField.leftView = imgView; _textField.leftViewMode = UITextFieldViewModeAlways;
时间: 2024-11-13 09:40:58
//最左侧加图片是以下代码 右侧类似 UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"comment_write"]]; _textField.leftView = imgView; _textField.leftViewMode = UITextFieldViewModeAlways;