开发者

How do I get a user's email address (with permission) on iPhone?

Typing on iPhone is tedious; I'd like to prompt my users for their email address without requiring them to actually type it.

Ideally they'd receive a dialog saying: "This app would like to use your email address. Don'开发者_StackOverflow社区t Allow / Allow"

If the user tapped "Allow," it would auto-fill their email address (the one they have configured in Mail.app) in a text field.

Is this possible?


Nope. But you can load up the contact picker interface and ask the user to select themselves from it-- that's much more friendly than making them type it in.

More info here: http://developer.apple.com/iphone/library/documentation/ContactData/Conceptual/AddressBookProgrammingGuideforiPhone/200-QuickStart/QuickStart.html


Yes it is possible, have a look at ABGetMe for iOS. Note that you would have to write the allow/don’t allow dialog yourself. Also, make sure to read and understand the Limitations section of the README.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜