How to pass data from webpage to iPhone app
I want to password marked in web page to my iPhone application. If I paste it to clip开发者_JS百科board then I need to run my app in background which is not possible in iPhone. So, how I should do that?
You can define a Custom URL Scheme in your iPhone app. Then you can link to your iPhone app using a regular HTML link, so for example <a href="yourapp://mydata">Click here to go to my app</a>
. For more information about this, go to the Apple documentation (scroll to the part about Custom URL schemes). You can also find a lot of information about this by googling.
精彩评论