1.找到應用程序的描述鏈接,比如:
https://57324.api-01.com/serve?action=click&publisher_id=57324&site_id=48830
2.然後將 http:// 替換爲 itms:// 或者 itms-apps://
,如下:
itms://57324.api-01.com/serve?action=click&publisher_id=57324&site_id=48830
itms-apps://57324.api-01.com/serve?action=click&publisher_id=57324&site_id=48830
3.關聯方法,在方法中調用下面方法
<span style="font-size:18px;">[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms:
//57324.api-01.com/serve?action=click&publisher_id=57324&site_id=48830"]];</span>
<span style="font-size:18px;">[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps:
//57324.api-01.com/serve?action=click&publisher_id=57324&site_id=48830"]];</span>