Skip to content

vickness/VKIconTextField

Repository files navigation

VKIconTextField

UITextField的封装,可以设置图片,分隔线和高亮状态

CocoaPods

pod 'VKIconTextField', '~> 1.0'

ScreenShot

截图

Examples

-(VKIconTextField *)userNameTF{
    if (!_userNameTF) {
        _userNameTF = [VKIconTextField new];
        _userNameTF.colorNormal = [UIColor groupTableViewBackgroundColor];
        _userNameTF.colorHighlight = [UIColor orangeColor];
        _userNameTF.leftIconNormal = [UIImage imageNamed:@"user_login"];
        _userNameTF.leftIconHighlight = [UIImage imageNamed:@"user_login"];
        _userNameTF.showHighlightedEditing = YES;
        _userNameTF.showBottomLine = YES;
        _userNameTF.placeholder = @"请输入用户名";
    }
    return _userNameTF;
}

About

A textField with icon and highlights.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published