p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #822e0e }
p.p2 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo }
p.p3 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; min-height: 21.0px }
p.p4 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #c91b13 }
p.p5 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #3d1d81 }
p.p6 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #1d9421 }
p.p7 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #6122ae }
p.p8 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px "PingFang SC"; color: #1d9421 }
p.p9 { margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #703daa }
span.s1 { }
span.s2 { font: 18.0px "PingFang SC" }
span.s3 { color: #c32275 }
span.s4 { color: #000000 }
span.s5 { color: #6122ae }
span.s6 { color: #3d1d81 }
span.s7 { font: 18.0px Menlo; color: #000000 }
span.s8 { font: 18.0px Menlo }
span.s9 { color: #703daa }
span.s10 { color: #0435ff }
span.s11 { color: #c91b13 }
span.s12 { color: #1d9421 }
span.s13 { font: 18.0px "PingFang SC"; color: #1d9421 }
#pragma mark -- 去 app store
- (void)jumpToAppStore{
NSString *evaluateString = [NSString stringWithFormat:@"http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=517198355&pageNumber=0&sortOrdering=2&type=Purple+Software&mt=8" ];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:evaluateString]];
}
#pragma mark -- 应用内
//苹果提供了一个框架StoreKit.framework,
//导入StoreKit.framework,在需要跳转的控制器里面添加头文件 #import,
//实现代理方法:< SKStorePRoductViewControllerDelegate >
- (void)loadAppStoreController
{
//初始化控制器
SKStoreProductViewController *storeProductViewContorller = [[SKStoreProductViewController alloc] init];
//设置代理请求为当前控制器本身
storeProductViewContorller.delegate = self;
//加载一个新的视图展示
[storeProductViewContorller loadProductWithParameters:
//appId唯一的
@{SKStoreProductParameterITunesItemIdentifier : @"517198355"} completionBlock:^(BOOL result, NSError *error) {
//block回调
if(error){
NSLog(@"error %@ with userInfo %@",error,[error userInfo]);
}else{
//模态弹出appstore
[self presentViewController:storeProductViewContorller animated:YES completion:^{
}
];
}
}];
}
- (void)productViewControllerDidFinish:(SKStoreProductViewController *)viewController{
[self dismissViewControllerAnimated:YES completion:^{
}];
}