一足绅、找到應(yīng)用程序的描述鏈接,比如:https://itunes.apple.com/cn/app/支付寶-讓生活更簡單/id333206289?mt=8
二韩脑、然后將https:// 替換成itms:// 或者 itms-apps://
itms://itunes.apple.com/cn/app/支付寶-讓生活更簡單/id333206289?mt=8
itms-apps://itunes.apple.com/cn/app/支付寶-讓生活更簡單/id333206289?mt=8
三氢妈、如果鏈接地址中含有中文,就需要用UTF8編碼
NSString *url = @"itms://itunes.apple.com/cn/app/支付寶-讓生活更簡單/id333206289?mt=8";
url = [url stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url];