|
@@ -2010,6 +2010,8 @@
|
|
|
[cell.webview loadHTMLString:[section valueForKey:@"data"] baseURL:nil];
|
|
[cell.webview loadHTMLString:[section valueForKey:@"data"] baseURL:nil];
|
|
|
|
|
|
|
|
cell.backgroundColor = [UIColor whiteColor];
|
|
cell.backgroundColor = [UIColor whiteColor];
|
|
|
|
|
+
|
|
|
|
|
+ cell.webview.userInteractionEnabled = YES;
|
|
|
return cell;
|
|
return cell;
|
|
|
} else if ([type isEqualToString:@"sign_url"]) { /** Sign */
|
|
} else if ([type isEqualToString:@"sign_url"]) { /** Sign */
|
|
|
|
|
|
|
@@ -3466,4 +3468,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+- (BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType {
|
|
|
|
|
+
|
|
|
|
|
+ if (navigationType == UIWebViewNavigationTypeOther ) {
|
|
|
|
|
+ return YES;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if ([[UIApplication sharedApplication] canOpenURL:request.URL]) {
|
|
|
|
|
+ [[UIApplication sharedApplication] openURL:request.URL];
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ return NO;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
@end
|
|
@end
|