devedbox / AXWebViewController

AXWebViewController is a webViewController to browse web content inside applications. It’s a lightweight controller on iOS platform based on WKWebView (UIWebView would be the base Kit under iOS 8.0). It added navigation tool bar to refresh, go back, go forward and so on. It support the navigation style on WeChat. It is a simple-using and convenient web view controller using inside applications.
MIT License
798 stars 134 forks source link

webView网页底部内容(部分固定标签)被toolbar遮盖 修改webView约束已解决 #66

Closed HeathHsia closed 6 years ago

HeathHsia commented 6 years ago

在AXWebViewController.m文件 1248行 修改前

[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[topLayoutGuide][_webView]|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(_webView, topLayoutGuide, bottomLayoutGuide)]];
webviewerrort

修改后

[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:[topLayoutGuide][_webView]-0.01-[bottomLayoutGuide]|" options:0 metrics:nil views:NSDictionaryOfVariableBindings(_webView, topLayoutGuide, bottomLayoutGuide)]];

webviewerror

HeathHsia commented 6 years ago

有时候网页底部标签偏上, 导致webView视图高度变小, 把webView垂直方向约束改为 V:|[_webView]| 解决 不依赖self.topLayoutGuide, self.bottomLayoutGuide