UIScrollViewContentAccessors 1.0.3

UIScrollViewContentAccessors 1.0.3

LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Unclaimed.

  • By
  • Anton Domashnev

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


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.