问题
I am trying to write an app that does a person search of my company. When it returns a result, I want to include a feature to add the person to the Contacts app with the push of a button.
The problem is, I can't find a way to launch the Contacts app through a custom URL scheme with the new person info as parameters. Does anyone have any idea if this is possible and if so, how to go about that?
回答1:
If there were a public URL scheme, Apple would have documented it in the URL Scheme Reference.
Your options are:
- ABNewPersonViewController or ABUnknownPersonViewController
- Direct modification of the address book. (archived link)
回答2:
There is a URL scheme for the Contacts app on the Mac – the addressbook scheme. You might want to try whether this works on iOS as well.
回答3:
No,Not possible to open Default contact application as URL scheme is not available
来源:https://stackoverflow.com/questions/3531585/is-there-a-custom-url-scheme-for-the-built-in-contacts-app