|
@@ -69,6 +69,8 @@ static NSURLCredential* clientAuthenticationCredential;
|
69
|
69
|
super.backgroundColor = [UIColor clearColor];
|
70
|
70
|
_bounces = YES;
|
71
|
71
|
_scrollEnabled = YES;
|
|
72
|
+ _showsHorizontalScrollIndicator = YES;
|
|
73
|
+ _showsVerticalScrollIndicator = YES;
|
72
|
74
|
_automaticallyAdjustContentInsets = YES;
|
73
|
75
|
_contentInset = UIEdgeInsetsZero;
|
74
|
76
|
}
|
|
@@ -150,6 +152,8 @@ static NSURLCredential* clientAuthenticationCredential;
|
150
|
152
|
_webView.scrollView.scrollEnabled = _scrollEnabled;
|
151
|
153
|
_webView.scrollView.pagingEnabled = _pagingEnabled;
|
152
|
154
|
_webView.scrollView.bounces = _bounces;
|
|
155
|
+ _webView.scrollView.showsHorizontalScrollIndicator = _showsHorizontalScrollIndicator;
|
|
156
|
+ _webView.scrollView.showsVerticalScrollIndicator = _showsVerticalScrollIndicator;
|
153
|
157
|
_webView.allowsLinkPreview = _allowsLinkPreview;
|
154
|
158
|
[_webView addObserver:self forKeyPath:@"estimatedProgress" options:NSKeyValueObservingOptionOld | NSKeyValueObservingOptionNew context:nil];
|
155
|
159
|
_webView.allowsBackForwardNavigationGestures = _allowsBackForwardNavigationGestures;
|
|
@@ -357,6 +361,18 @@ static NSURLCredential* clientAuthenticationCredential;
|
357
|
361
|
_webView.scrollView.scrollEnabled = scrollEnabled;
|
358
|
362
|
}
|
359
|
363
|
|
|
364
|
+- (void)setShowsHorizontalScrollIndicator:(BOOL)showsHorizontalScrollIndicator
|
|
365
|
+{
|
|
366
|
+ _showsHorizontalScrollIndicator = showsHorizontalScrollIndicator;
|
|
367
|
+ _webView.scrollView.showsHorizontalScrollIndicator = showsHorizontalScrollIndicator;
|
|
368
|
+}
|
|
369
|
+
|
|
370
|
+- (void)setShowsVerticalScrollIndicator:(BOOL)showsVerticalScrollIndicator
|
|
371
|
+{
|
|
372
|
+ _showsVerticalScrollIndicator = showsVerticalScrollIndicator;
|
|
373
|
+ _webView.scrollView.showsVerticalScrollIndicator = showsVerticalScrollIndicator;
|
|
374
|
+}
|
|
375
|
+
|
360
|
376
|
- (void)postMessage:(NSString *)message
|
361
|
377
|
{
|
362
|
378
|
NSDictionary *eventInitDict = @{@"data": message};
|