About achieving mutual jumps in Web pages and apps

Source: Internet
Author: User

After the app is online, after the small partner tries to retrieve the password after the login page to jump to a webpage, why can not click the button to return to the app?!

Here are some summary and experience of the application:

1, the app jump to the Web page this is very simple and easy to implement, as long as the URL to know the page, call[[uiapplicationsharedapplication] openURL: urlstr]; it's OK. 2, the page jumps to the App,app to jump to the appThese two principles are a bit similar, put together in terms of. In the online collection of information found that in fact, the app jumps to another page is open URL or a URL scheme (URL scheme). Then you can imagine that a URL scheme is set up for an app, and then you can open the app from somewhere else through this URL scheme. 1. Modify the Info.plist file in the original application and add the URL under List types2. Then open item 0, add the URL schemes, set the item 0 in it as an identifier string that you want to set the app3. Open the app in other places// open another program
    nsurl nsurl Urlwithstring:@ "Returnapp:" ];[[uiapplication sharedapplication] openURL: urlstr];  Note: When you open the app, you need to append a colon to the label, which is :@ "Returnapp:"  thinking: Can you make two apps jump to each other? Reference: http://www.cocoachina.com/bbs/read.php?tid-58388-page-1.html

About achieving mutual jumps in Web pages and apps

Related Article

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.