BRYEmailAddressDetective 1.0.0

BRYEmailAddressDetective 1.0.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Bryan Irace.



  • By
  • Bryan Irace

Crude attempt at trying to figure out a user's email address if Contacts access is granted. As far as I know, Square first came up with this approach (only works if their device has a default name e.g. "Bryan Irace's iPhone").

This probably isn't production ready and likely doesn't work in non-English locales.

Usage

NSString *emailAddress = [BRYEmailAddressDetective determineEmailAddress:
                          [UIDevice currentDevice].name];

License

Available for use under the MIT license: http://bryan.mit-license.org