iOS 应用跳转到AppStore评分 可内置跳转
2016-08-03 17:48
495 查看
跳转到AppStore评分,有两种方法:
一种是跳出应用,跳转到AppStore,进行评分;
另一种是在应用内,内置AppStore进行评分。
PS:appID在https://itunesconnect.apple.com中创建应用即可在应用界面获得
1.跳出应用,跳转到AppStore,进行评分
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=APPID&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8"]];(APPID可在itunce里面查到)
2.在应用内,内置AppStore进行评分(补充:貌似此方法只能跳转到商店评分界面,然鹅点击评分无反应)
苹果提供了一个框架StoreKit.framework,导入StoreKit.framework,在需要跳转的控制器里面添加头文件 #import <StoreKit/StoreKit.h>, 实现代理方法:<
SKStorePRoductViewControllerDelegate >
//自定义方法
应用中直接跳转到AppStore:
找到应用程序的描述链接,比如:http://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
然后将 http:// 替换为 itms:// 或者 itms-apps://:
itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
itms-apps:// itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
一种是跳出应用,跳转到AppStore,进行评分;
另一种是在应用内,内置AppStore进行评分。
PS:appID在https://itunesconnect.apple.com中创建应用即可在应用界面获得
1.跳出应用,跳转到AppStore,进行评分
[[UIApplicationsharedApplication]openURL:[NSURLURLWithString:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=APPID&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8"]];(APPID可在itunce里面查到)
2.在应用内,内置AppStore进行评分(补充:貌似此方法只能跳转到商店评分界面,然鹅点击评分无反应)
苹果提供了一个框架StoreKit.framework,导入StoreKit.framework,在需要跳转的控制器里面添加头文件 #import <StoreKit/StoreKit.h>, 实现代理方法:<
SKStorePRoductViewControllerDelegate >
//自定义方法
- (void)loadAppStoreController { // 初始化控制器 SKStoreProductViewController *storeProductViewContorller = [[SKStoreProductViewController alloc] init]; // 设置代理请求为当前控制器本身 storeProductViewContorller.delegate = self; [storeProductViewContorller loadProductWithParameters:@{SKStoreProductParameterITunesItemIdentifier:kAppId} completionBlock:^(BOOL result, NSError *error) { if(error) { NSLog(@"error %@ with userInfo %@",error,[error userInfo]); }else { // 模态弹出appstore [self presentViewController:storeProductViewContorller animated:YES completion:nil]; } }]; } //AppStore取消按钮监听 - (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController { [self dismissViewControllerAnimated:YES completion:nil]; }
应用中直接跳转到AppStore:
找到应用程序的描述链接,比如:http://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
然后将 http:// 替换为 itms:// 或者 itms-apps://:
itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
itms-apps:// itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8
相关文章推荐
- iOS 应用跳转到AppStore评分 可内置跳转
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- iOS --- 应用内跳转到AppStore里评分
- ios应用内跳转到appstore里评分
- iOS app应用 跳转appStore评分 1
- ios应用内跳转到appstore里评分
- iOS计算App缓存的大小以及清理、iOS应用跳转到appstore评分、文字加阴影、 NSMutableArray到NSData的转化
- ios应用内跳转到appstore里评分
- iOS app应用 跳转appStore评分 2
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分
- ios应用内跳转到appstore里评分