使用以下代码,SKStoreProductViewController可以显示应用程序的描述。
当我触摸“免费”按钮时,它会显示“安装应用”。然后我触摸“安装应用”,进度条显示在应用图标内。但是,进度条会在2-3秒内消失,应用程序仍会被卸载。
这是我的演示应用程序。有谁知道原因?
SKStoreProductViewController *skvc = [[SKStoreProductViewController new] autorelease];
skvc.delegate = self;
NSDictionary *dict = [NSDictionary dictionaryWithObject:@"425349261" forKey:SKStoreProductParameterITunesItemIdentifier];
[skvc loadProductWithParameters:dict completionBlock:nil];
[self presentViewController:skvc animated:YES completion:nil];