The jump between apps

Source: Internet
Author: User

1, jump to open the corresponding app AppStore

    • Do not need to configure the URL schemes, directly in the corresponding method to configure the AppStore link address to replace HTTPS to

      Itms-apps: (preferably with this)

    • Get AppStore Link method: Search the app copy link



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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.