UIScrollViewContentAccessors 1.0.3

UIScrollViewContentAccessors 1.0.3

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.


Downloads

Total43
Week0
Month0

Installs

Apps6
Test Targets1
powered by Segment

GitHub

Stars23
Watchers2
Forks2
Issues0
Contributors1
Pull Requests0

Code

Files2
LOCLines of Code 70


  • By
  • Anton Domashnev

Category for UIScrollView which make easier to access UIScrollView's content properties in iOS.

Use

scrollView.contentInsetTop = 150;

to change scrollView.contentInset.top instead of

UIEdgeInset newInset = scrollView.contentInset;
newInset.top = 150;
scrollView.contentInset = newInset;

You can access contentOffsetX, contentOffsetY, contentInsetTop, contentInsetLeft, contentInsetBottom, contentInsetRight, contentWidth or contentHeight like properties.