开发者

Launching a native application from a link of website on iPhone

I have a query regarding launching a n开发者_如何学运维ative application from a link of website on iPhone.

I will explain. Generally a web based application is used to work online without using any feature of iPhone device (such as GPS, Camera, Accelerometer etc.)

I have a iPhone specific website which performs many tasks online.

Now while keeping all the functionality same, I want to add a feature of taking a picture from iPhone in-built camera. i.e. when user clicks a button on website "Take Picture", my native application should be launched, which will take a picture and do specific tasks..

How to capture a event of button click which is performed on website? Should I use UIWebView or Safari?

I know that using URL Scheme we can launch Safari from native application. But how to achieve the opposite as explained above?

All other functionality works great on website, so I don't want to convert the whole website into native application. (Otherwise I will have to deal with web services). Only this functionality needs to be added.


Register a URL Handler, then have a link on your site to myapphandle://some.parameters.here/

A la: http://iosdevelopertips.com/cocoa/launching-your-own-application-via-a-custom-url-scheme.html

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜