How can I go to the App Store from the UIWebView link in my iPhone app?

I want to take the OUT user of my application in the App Store when they click on the link in the UIWebView in my application. But when I click on the link, nothing happens (sim AND device both). How can I go to the App Store from the UIWebView link in the iPhone app?

BY WAY :

Link in my UIWebView html as it is currently (minus self-promotion)

<a href="http://itunes.apple.com/jp/app/someappname/someidnum?mt=8">Download Now</a>
+3
source share
2 answers

Hm. You may be right. In this case, just use this function UIWebViewDelegate:

- (BOOL)webView:(UIWebView *)webView
shouldStartLoadWithRequest:(NSURLRequest *)request
 navigationType:(UIWebViewNavigationType)navigationType

NSURLRequest, , iTunes, , :

[[UIApplication sharedApplication] openURL:someURL];
+4

:

[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"http://itunes.apple.com/xxxxx"]];
0

Source: https://habr.com/ru/post/1735541/


All Articles