问题描述:

I tried putting the following link into some html loaded by UIWebView

<A href="itms-apps://itunes.apple.com/us/app/angry-birds/id343200656?mt=8">The download</A>

But it generates an error of WebKitErrorDomain/code 101.

Is it possible to download an app from within UIWebView?

网友答案:

Use OpenURL:

NSString* url = @"itms-apps://itunes.apple.com/us/app/angry-birds/id343200656?mt=8";
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: url]];

and the App Store app will open.

网友答案:

No. You can just let the application open the Appstore with the app to download.

相关阅读:
Top