Skip to content

avalore/iOS-EmailCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

iOS Email Suggest

Email address' are awkward to type on mobile devices. Your users could be in a taxi, on the bus or even driving whilst using your app. The more you can do to make user input easier and less error prone the better. This class takes a user submitted email address and makes suggestions for common errors (.con instead of .com, gmal.com instead of gmail.com, etc).

email suggest example

Basic usage

    LHEmailCheck *emailCheck = [[LHEmailCheck alloc] init];
    NSString *suggestedEmail = [emailCheck suggestEmail:@"[email protected]"];
    if (suggestedEmail) {
        //An email suggestion was created
        NSString *suggestMsg = [NSString stringWithFormat:@"Did you mean %@?", suggestedEmail];
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Did you mean?"
                                                        message:suggestMsg
                                                       delegate:self
                                              cancelButtonTitle:@"No"
                                              otherButtonTitles:@"Yes", nil];
        [alert show];
    }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published