Latest 0.1.0
Homepage https://github.com/CrazySugar/SWAutoComplateEmailView
License MIT
Platforms ios 7.1, requires ARC
Dependencies TTTAttributedLabel
Authors

CI Status
Version
License
Platform

Usage

An UIScrollView subclass to auto complete email address input.

You can initialize the inferred text field like:

SWAutoComplateEmailView *emailInferView = [[SWAutoComplateEmailView alloc] initWithFrame:self.inferView.frame textField:self.emailTextField];

You can customize the following properties.

// defaults to 0.4
@property (nonatomic) CGFloat animationDuration;

// defaults to 30
@property (nonatomic) CGFloat inferTextHeight;

// defaults to 0.9
@property (nonatomic) CGFloat viewAlpha;

// defaults to 5
@property (nonatomic) CGFloat inferTextInset;

@property (nonatomic, strong) UIColor *typedTextColor;

@property (nonatomic, strong) UIColor *inferredTextColor;

/**
 Format:
 self.emailSuffixes = @[
                        @"163.com",
                        @"126.com",
                        @"yeah.net",
                        @"188.com",
                        @"vip.163.com",
                        @"vip.126.com",
                        @"corp.netease.com"
                        ];
 */
@property (nonatomic, strong) NSArray *emailSuffixes;

To run the example project, clone the repo, and run pod install from the Example directory first.

If the ‘Run’ button is gray, edit current scheme and choose the executable.

Installation

SWAutoComplateEmailView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "SWAutoComplateEmailView"

Author

sugar, [email protected]

License

SWAutoComplateEmailView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SWAutoComplateEmailView",
    "version": "0.1.0",
    "summary": "Email address auto completion.",
    "description": "Auto complete email address while inputting. A subview of UIScrollView.",
    "homepage": "https://github.com/CrazySugar/SWAutoComplateEmailView",
    "license": "MIT",
    "authors": {
        "sugar": "[email protected]"
    },
    "source": {
        "git": "https://github.com/CrazySugar/SWAutoComplateEmailView.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.1"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "SWAutoComplateEmailView": [
            "Pod/Assets/*.png"
        ]
    },
    "dependencies": {
        "TTTAttributedLabel": []
    }
}

Pin It on Pinterest

Share This