开发者

how to invoke a iphone native application from webview

开发者 https://www.devze.com 2022-12-09 16:20 出处:网络
i have a application which has 2 parts one is a webview and other is a native iphone application. I want to invoke a nativ开发者_如何学Pythone iphone application from a website inside

i have a application which has 2 parts one is a webview and other is a native iphone application. I want to invoke a nativ开发者_如何学Pythone iphone application from a website inside a webview.


If by webview you mean a webpage that you open in Mobile Safari you can link to your native iPhone app by registering a custom URL scheme for your app.

http://www.idev101.com/code/Objective-C/custom_url_schemes.html has a fairly clear description on how it's done.


If you mean opening something like Mail or SMS from within your app, then you can use a URL like sms:// or mailto:

0

精彩评论

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