Latest 1.0.1
Homepage https://github.com/Vickeywei/WQEmailAutoTextField
License Copyright © 2016-2016 Vicky. All rights reserved.
Platforms ios 7.0, requires ARC
Authors

WQEmailAutoTextField

支持StoryBoard和纯代码的邮箱输入填充效果

use Guide
pod setup 更新本地pod仓库
pod ‘WQMailAutoFillTextField’, ‘~> 1.0.0’添加到podfile中
引入头文件#import
1.如果使用StoryBoard,将其Class改为WQMailTextField
然后设置邮箱后缀的数据源数组
self.textField.mailArray = [NSMutableArray arrayWithObjects:@"@hzdracom.com",@"@qq.com",@"@163.com",@"@126.com",@"@yahoo.com",@"@139.com",@"@henu.com", nil];
2.如果是纯代码,初始化方法只支持

  • (instancetype)initWithFrame:(CGRect)frame fontSize:(CGFloat)fontSize;//第一个是frame,第二个是字号大小
    在设置邮箱后缀的数据源数组.

Latest podspec

{
    "name": "WQMailAutoFillTextField",
    "version": "1.0.1",
    "summary": "u9002u7528u4e8eStoryBoardu548cu7eafu4ee3u7801u7684u90aeu7bb1u8f93u5165u8865u5168TextFiled",
    "homepage": "https://github.com/Vickeywei/WQEmailAutoTextField",
    "license": {
        "type": "Copyright",
        "text": "    u00a9 2016-2016 Vicky. All rights reserved.n"
    },
    "authors": {
        "vicky": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Vickeywei/WQEmailAutoTextField.git",
        "tag": "1.0.1"
    },
    "source_files": "WQEmailAutoFillTextField/Classes/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This