Is there a custom URL scheme for the built-in Contacts app?

坚强是说给别人听的谎言 提交于 2019-11-28 01:33:44

问题


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:

  1. ABNewPersonViewController or ABUnknownPersonViewController
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!