The jump between apps

Source: Internet
Author: User

One program to jump to another program. Need to be modified in the plist file of the target program:

Open info.plist, add a URL types

Expand URL Types, expand Item0, and change the URL identifier under ITEM0 to URL Scheme

Expand URL Scheme To modify the contents of Item0 to Shashan.secondapp (this is the key to jump). Then in the original program, to start jumping places, can be a button method. It says: Nsurl * myurl_app_a = [Nsurl urlwithstring:@ "Shashan. Secondapp://aaaaa "];//shashan. Secondapp is the key            if of the target app ([[UIApplication Sharedapplication] canopenurl:myurl_app_a]) {                 nslog (@ "Canopenurl");                 [[uiapplication Sharedapplication] openurl:myurl_app_a];             } and then you can jump. If you want to jump back, the method is the same.  

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.