Latest 1.0.3
Homepage https://github.com/Antondomashnev/UIScrollViewContentAccessors
License MIT
Platforms ios 4.3
Authors

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.


Adding UIScrollViewContentAccessors to your project

From CocoaPods

Add pod 'UIScrollViewContentAccessors' to your Podfile.

Source files

Another way to add the UIScrollViewContentAccessors to your project is to directly add the source files and resources to your project.

  1. Download the latest code version or add the repository as a git submodule to your git-tracked project.
  2. Open your project in Xcode, than drag and drop UIScrollView+ContentAccessors.h and UIScrollView+ContentAccessors.m files onto your project (use the "Product Navigator view"). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include ADGraphView wherever you need it with #import "UIScrollView+ContentAccessors.h".

Latest podspec

{
    "name": "UIScrollViewContentAccessors",
    "version": "1.0.3",
    "summary": "Easy access to UIScrollView's content properties.",
    "description": "n    You can access contentOffsetX, contentOffsetY, contentInsetTop, contentInsetLeft, contentInsetBottom, contentInsetRight, contentWidth or contentHeight like properties.n    Like this:n    scrollview.contentWidth = 320;n  ",
    "homepage": "https://github.com/Antondomashnev/UIScrollViewContentAccessors",
    "authors": {
        "Anton Domashnev": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Antondomashnev/UIScrollViewContentAccessors.git",
        "tag": "1.0.3"
    },
    "platforms": {
        "ios": "4.3"
    },
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "source_files": "UIScrollView+ContentAccessors/UIScrollView+ContentAccessors.{h,m}",
    "requires_arc": false
}

Pin It on Pinterest

Share This