18

修复 _adjustContentOffsetIfNecessary 导致 scroll view 闪动问题 - Hack Life of Op...

 3 years ago
source link: http://openfibers.github.io/blog/2019/09/16/fix-adjustcontentoffsetifnecessary-make-scroll-view-blink/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

修复 _adjustContentOffsetIfNecessary 导致 Scroll View 闪动问题

继承 scroll view,override _adjustContentOffsetIfNecessary 到空方法。

swizz scroll view _adjustContentOffsetIfNecessary 到其 category 的一个空方法中。

对应 UIViewController 的 automaticallyAdjustsScrollViewInsets 设置为 NO。


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK