Authored by ZhangTonghai

适配ios11

Pod::Spec.new do |s|
s.name = "YHExplorer"
s.version = "1.1.0-no-webp-beta"
s.version = "1.1.1-ios11"
s.summary = "Integrated WebView with Cordova"
s.description = <<-DESC
An WebView Kit integrated Cordova.
... ...
... ... @@ -85,6 +85,11 @@ static float kprogressViewRadius = 2.0f;
if (self.progressBar && !self.progressBar.progressView.superview) {
[self.currentNaviBar addSubview:self.progressBar.progressView];
}
#ifdef __IPHONE_11_0
if (@available(iOS 11.0, *)) {
self.webView.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
#endif
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
... ...