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
797 stars 133 forks source link

图片放大后,view上移20pt #56

Open ghost opened 6 years ago

ghost commented 6 years ago

AXWebViewController版本: 0.6.1、0.7.0

Xcode版本: 9.1

iOS版本: 10.3.2

依赖管理工具(cocoapods)版本: 1.3.1

复现步骤: 打开一个AXWebViewController,点击网页中的图片打开一个全屏的图片浏览器或视频播放器,再返回,页面上移20pt,下滑也不再返回

1 2 3 4 5

devedbox commented 6 years ago

@clasting 我试过了,present一个新的vc,好像没产生你这个问题(模拟器)。你用的是什么库?相关的代码贴一些吧

ghost commented 6 years ago

TestWebVC.zip

ghost commented 6 years ago

我试了下最新提交的代码,问题已解决,感谢!

ghost commented 6 years ago

有输入框的网页,点击后,光标不见了

ghost commented 6 years ago
Probably at least one of the constraints in the following list is one you don't want. 
Try this: 
    (1) look at each constraint and try to figure out which you don't expect; 
    (2) find the code that added the unwanted constraint or constraints and fix it. 
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 

( "<NSAutoresizingMaskLayoutConstraint:0x1c4496800 UIToolbar:0x110709990.width == _UIInputViewContent:0x104498880.width>", "<NSAutoresizingMaskLayoutConstraint:0x1c448c580 _UIInputViewContent:0x104498880.width == 0>", "<NSLayoutConstraint:0x1c4495cc0 _UIButtonBarStackView:0x104237b90.leading == _UIToolbarContentView:0x1107218a0.leading + 8>", "<NSLayoutConstraint:0x1c448d840 _UIButtonBarStackView:0x104237b90.trailing == _UIToolbarContentView:0x1107218a0.trailing>", "<NSLayoutConstraint:0x1c4495270 _UIToolbarContentView:0x1107218a0.trailing == UIToolbar:0x110709990.trailing>", "<NSLayoutConstraint:0x1c4494780 _UIToolbarContentView:0x1107218a0.leading == UIToolbar:0x110709990.leading>", "<NSLayoutConstraint:0x1c0698060 _UIModernBarButton:0x10fc5a580.leading == _UIButtonBarButton:0x10fc5a330.leading + 12>", "= _UIModernBarButton:0x10fc5a580.trailing + 8>", "= _UIButtonBarButton:0x10fc414e0.leading + 5>", "= _UIModernBarButton:0x10fc5e830.trailing + 5>", "<NSLayoutConstraint:0x1c068ebf0 _UIModernBarButton:0x10fc2c790.leading == _UIButtonBarButton:0x10fc2c540.leading + 8>", "<NSLayoutConstraint:0x1c0698380 _UIButtonBarButton:0x10fc2c540.trailing == _UIModernBarButton:0x10fc2c790.trailing + 12>", "<NSLayoutConstraint:0x1c0693420 UILayoutGuide:0x1c43a4b40.leading == _UIButtonBarButton:0x10fc5a330.leading>", "<NSLayoutConstraint:0x1c0697390 UILayoutGuide:0x1c43a4b40.trailing == _UIButtonBarButton:0x10fc2c540.trailing>", "<NSLayoutConstraint:0x1c0692110 UIView:0x10fc41300.leading == _UIButtonBarButton:0x10fc5a330.trailing>", "<NSLayoutConstraint:0x1c069b260 _UIButtonBarButton:0x10fc414e0.leading == UIView:0x10fc41300.trailing>", "<NSLayoutConstraint:0x1c0692fc0 UIView:0x10fc5eb70.leading == _UIButtonBarButton:0x10fc414e0.trailing>", "<NSLayoutConstraint:0x1c068ca30 _UIButtonBarButton:0x10fc2c540.leading == UIView:0x10fc5eb70.trailing>", "<NSLayoutConstraint:0x1c4498ce0 UILayoutGuide:0x1c43a4b40.left == _UIButtonBarStackView:0x104237b90.left>", "<NSLayoutConstraint:0x1c4497750 _UIButtonBarStackView:0x104237b90.right == UILayoutGuide:0x1c43a4b40.right>" )

devedbox commented 6 years ago

@clasting 先不要尝试Master分支的代码,问题还在解决中,解决了我会艾特你的!最近项目忙,我会抽时间出来解决哈!

ghost commented 6 years ago

好的,知道了