[ios] Bookmark links will open Safari since now.

This commit is contained in:
Timur Bernikowich 2014-12-25 19:18:15 +03:00 committed by Alex Zolotarev
parent 42d3ef0c6d
commit 9acf029f2f
2 changed files with 12 additions and 1 deletions

View file

@ -57,7 +57,7 @@
webView.clipsToBounds = YES;
webView.opaque = NO;
webView.backgroundColor = [UIColor clearColor];
webView.userInteractionEnabled = NO;
webView.userInteractionEnabled = YES;
_webView = webView;
}
}

View file

@ -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];