1, jump to open the corresponding app AppStore
1// jump directly to Weibo AppStore2 -(ibaction) Weiboclick: (ID) sender {3 4 [[uiapplication sharedapplication] Openurl:[nsurl urlwithstring:@ " itms-apps://itunes.apple.com/cn/app/wei-bo/id350962117?mt=8"]; 5 }
Execute this code to open the corresponding app.
2, click on the method to open the locally installed app
And for the click Link, can open directly, the following code to achieve. Prerequisites: You need to know your app to open the protocol, such as Paste app, the agreement is: com.baidu.tieba://, the: weixin://, and so on ... (now Disabled)
If you want to open a locally installed app, do not configure the info there a lot of things, just need to know the corresponding app open protocol on it, open some just a string address
The code that corresponds to open is:
Open the corresponding code of Baidu Bar-(ibaction) Youkuclick: (ID) Sender { [[uiapplication sharedapplication] Openurl:[nsurl urlwithstring:@ "com.baidu.tieba://"]; }
3, some popular jump URLs
app:itms-apps://ax.itunes.apple.com/
E-mail: Emailto://email (seemingly unavailable)
Tel: tel://telephone
SMS: Sms://telephone
Baidu paste: @ "com.baidu.tieba://"
Weibo: weibo://
4, here is a custom URL (only for your own app)
To customize a URL:
Add a URL to the Info.plist types
Add the following two items to the URL types
URL identifier:
URL Scheme:app
Then other programs can be called by urlstring = app://
The jump between apps