Some of the small features that iOS often use to jump, apply ratings

Source: Internet
Author: User

Inter-app Jump

Sometimes it is necessary to open other applications in this application, such as jumping from A to B application

First, the B application has its own URL address (configured in info.plist)

b The URL address of the app is: lwb://weibin__li.cn
Then use UIApplication in a application to complete the jump
Nsurl *url = [Nsurl urlwithstring:@ "lwb://weibin__li.cn"];

[[UIApplication sharedapplication] openurl:url];


App ratings

To improve the user experience of your app, you often need to invite users to score apps
App scoring is all about jumping to AppStore to show your app and then writing a review by the user himself
How to jump to AppStore and show your app
Method 1
NSString *appid = @ "444934666";
NSString *str = [NSString stringWithFormat:
@ "itms-apps://ax.itunes.apple.com/webobjects/mzstore.woa/wa/viewcontentsuserreviews?type=purple+software& id=%@ ", AppID];
[[UIApplication sharedapplication] Openurl:[nsurl Urlwithstring:str]];


Method 2
NSString *str = [NSString stringWithFormat:
@ "itms-apps://itunes.apple.com/cn/app/id%@?mt=8", AppID];
[[UIApplication sharedapplication] Openurl:[nsurl Urlwithstring:str]];


Some of the small features that iOS often use to jump, apply ratings

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.