Jump from app to AppStore comment page implementation

Source: Internet
Author: User

If you want to implement within the app to jump to AppStore's corresponding comment page inside, as long as the following address in the app_id to replace their own ID on it, the other places do not have to tube.
If you want to experiment with the Safari browser, you can replace the "itms-apps://" in the Address with "http://".
Alternatively, you can try to change the values of several of these parameters to see the results.
Note: You must use real-machine debugging, which is not currently supported by the emulator

NSString * appstoreurlstring = @ "itms-apps://ax.itunes.apple.com/webobjects/mzstore.woa/wa/ Viewcontentsuserreviews?mt=8&onlylatestversion=true&pagenumber=0&sortordering=1&type=purple+ software&id=app_id ";  
     
    nsurl * url = [Nsurl urlwithstring:appstoreurlstring]; 
     
    if ([[ UIApplication Sharedapplication] canopenurl:url])  
    { 
         [[UIApplication sharedapplication] openurl:url]; 
   } 
     else 
    { 
        NSLog (@ "can Not open ");  
   } 

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.