[英]Can I let a user select a contact from his iPhone's contact list in a web application?
这样,在用户的明确许可下,只有一个联系人可以传递到Web应用程序。
hum, in a "pure web app" (that you access from a URL in the mobile safari) I don't think you can. 哼,在“纯网络应用”中(您可以通过移动浏览器中的URL访问),我认为您无法做到。 However, you can :
但是,您可以:
shouldStartLoadWithRequest
will be invoked. shouldStartLoadWithRequest
。 Check that the scheme of the URL from the NSURLRequest corresponds to myapp://contacts and based on that, trigger the opening of the ABPeoplePickerNavigationController to enable the selection of a "native" contact. [myWebView stringByEvaluatingJavascriptFromString:myJsFunctionToInjectContactInfo
[myWebView stringByEvaluatingJavascriptFromString:myJsFunctionToInjectContactInfo
所选内容重新注入到UIWebView中 I'm using this approach and it works fine. 我正在使用这种方法,并且效果很好。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.