Created
June 9, 2015 04:13
-
-
Save ixqbar/7b7263d9c749be7bb903 to your computer and use it in GitHub Desktop.
ios之contentOffset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The point at which the origin of the content view is offset from the origin of the scroll view | |
content view origin相对于scroll view origin的偏移 | |
可以把content view理解为设备屏幕,scroll view origin是要显示的内容 | |
显示内容下拉时content view origin 在 scroll view origin 上面, 此时contentOffset.y < 0, 这就是为什么下拉scroll view时contentOffset.y < 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment