方法一:
[[UIApplicationsharedApplication] openURL:[NSURLURLWithString:@"https://itunes.apple.com/cn/app/xxxx"]];
方法二:(推薦)
添加StoreKit,framework系統(tǒng)庫,實(shí)現(xiàn)相應(yīng)的代理方法
SKStoreProductViewController*store = [[SKStoreProductViewControlleralloc] init];
store.delegate =self;
[store loadProductWithParameters://appId唯一的
@{SKStoreProductParameterITunesItemIdentifier:@"appid"} completionBlock:^(BOOL ?result,NSError*error) {
} }]
//取消代理
- (void)productViewControllerDidFinish:(SKStoreProductViewController*)viewController{? ??
];}