forked from organicmaps/organicmaps
[ios] Bookmark links will open Safari since now.
This commit is contained in:
parent
42d3ef0c6d
commit
9acf029f2f
2 changed files with 12 additions and 1 deletions
|
@ -57,7 +57,7 @@
|
|||
webView.clipsToBounds = YES;
|
||||
webView.opaque = NO;
|
||||
webView.backgroundColor = [UIColor clearColor];
|
||||
webView.userInteractionEnabled = NO;
|
||||
webView.userInteractionEnabled = YES;
|
||||
_webView = webView;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -303,6 +303,17 @@ typedef NS_ENUM(NSUInteger, CellRow)
|
|||
[self updateWebView];
|
||||
}
|
||||
|
||||
- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
|
||||
{
|
||||
if (navigationType == UIWebViewNavigationTypeLinkClicked)
|
||||
{
|
||||
[[UIApplication sharedApplication] openURL:[request URL]];
|
||||
return NO;
|
||||
}
|
||||
else
|
||||
return YES;
|
||||
}
|
||||
|
||||
- (void)updateWebView
|
||||
{
|
||||
[self.bookmarkDescriptionView sizeToIntegralFit];
|
||||
|
|
Loading…
Add table
Reference in a new issue