Latest 1.1.9
Homepage https://github.com/ppaulojr/PPJEmailPicker
License MIT
Platforms ios
Authors

Build Status
CocoaPods Compatible
GitHub issues
GitHub license
Twitter

An UITextField replacement to select multiple e-mails

Demo

maildemo2

Installation with CocoaPods

Podfile

Add the line below to your Podfile:

pod 'PPJEmailPicker'

Usage

Programatically

Step 1 – Import Header

#import "PPJEmailPicker.h"
Step 2 – create object
-(PPJEmailPicker *) createAutoCompleteFieldWithFrame:(CGRect)frame
{
    PPJEmailPicker * actf = [[PPJEmailPicker alloc] initWithFrame:frame];
    actf.pickerDelegate = self;
    actf.possibleStrings = [[ListOfEmails emails] mutableCopy];
    actf.placeholder = NSLocalizedString(@"Type e-mail to send recognition", nil);
    return actf;
}
Step 3 – Pass a list of emails to it
    actf.possibleStrings = @[@"[email protected]", @"[email protected]];

Interface Builder

Add a UITextField and change the class to PPJEmailPicker.

ibchange

Don’t forget to set the pickerDelegate and to pass a list of e-mails for autocompletion.

Questions

Contact me at Twitter: @ppaulojr

Latest podspec

{
    "name": "PPJEmailPicker",
    "version": "1.1.9",
    "summary": "An UITextField replacement to select multiple e-mails",
    "description": "This is an UITextField replacement to select multiple e-mails. nThe goal is to create a control similar to GMail, Outlook or Mail.app `from` field.",
    "homepage": "https://github.com/ppaulojr/PPJEmailPicker",
    "screenshots": [
        "https://cloud.githubusercontent.com/assets/1206478/15473873/903f70a2-20d8-11e6-919e-474682571106.gif",
        "https://cloud.githubusercontent.com/assets/1206478/15397067/1d74ed7a-1db5-11e6-99f8-37a71b1e1869.gif"
    ],
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Pedro Paulo Oliveira Jr": "[email protected]"
    },
    "social_media_url": "http://twitter.com/ppaulojr",
    "platforms": {
        "ios": null
    },
    "source": {
        "git": "https://github.com/ppaulojr/PPJEmailPicker.git",
        "tag": "1.1.9"
    },
    "source_files": "PPJEmailPicker"
}

Pin It on Pinterest

Share This