iOS如何实现无需跳转AppStore直接安装应用
2013-01-07 16:01
1011 查看
应用内下载其他的APP是ios的新功能。
下面说一下简单的用法:
SKStoreProductViewController *skVC=[SKStoreProductViewController new];
skVC.delegate=self;
NSDictionary *dict = [NSDictionary dictionaryWithObject:@"395133418"forKey:SKStoreProductParameterITunesItemIdentifier];
[skVC loadProductWithParameters:dict completionBlock:nil];
[self presentViewController:skVC animated:YES completion:nil];
//@"395133418" --appid
//此方法是SKStoreProductViewControllerDelegate的实现方法,用于监控返回的按钮状态
-(void) productViewControllerDidFinish:(SKStoreProductViewController *)viewController{
[self dismissViewControllerAnimated:YES completion:^{
NSLog(@"dismiss");
}];
}
下面说一下简单的用法:
SKStoreProductViewController *skVC=[SKStoreProductViewController new];
skVC.delegate=self;
NSDictionary *dict = [NSDictionary dictionaryWithObject:@"395133418"forKey:SKStoreProductParameterITunesItemIdentifier];
[skVC loadProductWithParameters:dict completionBlock:nil];
[self presentViewController:skVC animated:YES completion:nil];
//@"395133418" --appid
//此方法是SKStoreProductViewControllerDelegate的实现方法,用于监控返回的按钮状态
-(void) productViewControllerDidFinish:(SKStoreProductViewController *)viewController{
[self dismissViewControllerAnimated:YES completion:^{
NSLog(@"dismiss");
}];
}
相关文章推荐
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- iOS 跳转AppStore的两种方法,应用内和直接跳转
- iOS_如何判断是否安装某个App并从另一个App中启动该App(未安装跳转到AppStore)
- IOS应用直接 跳转AppStore 的方法 IOS7以上
- IOS问题汇总:2014-12-11 iOS应用检查更新的最优方法附代码(转)+在 iOS 应用中直接跳转到 AppStore 的方法
- iOS开发中,应用内直接跳转到Appstore
- iOS开发中,应用内直接跳转到Appstore
- IOS6.0 应用内直接下载程序 不需跳转AppStore
- IOS6.0 应用内直接下载程序 不需跳转AppStore -b
- 在 iOS 应用中直接跳转到 AppStore 的方法
- ios 跳转AppStore的两种方法,应用内和直接跳转
- IOS6.0 应用内直接下载程序 不需跳转AppStore
- 在 iOS 应用中直接跳转到 AppStore 的方法
- iOS开发中,应用内直接跳转到Appstore(适合版本强制升级和跳转appstore评分)
- iOS开发---在 iOS 应用中直接跳转到 AppStore 的方法
- 在 iOS 应用中直接跳转到 AppStore 的方法
- IOS6.0 应用内直接下载程序 不需跳转AppStore
- 在 iOS 应用中直接跳转到 AppStore 的方法