Latest 0.0.4
Homepage https://github.com/sunbohong/SunHorizontalScrollView
License MIT
Platforms ios 7.0, requires ARC
Dependencies SDWebImage
Authors

An easy-to-use UIView subclass that implements a scrolling effect UIView with images

Purpose

An easy-to-use UIView subclass that implements a scrolling effect UIView with images

Let’s see example

Screenshot:

How to use

import class #import "SunHorizontalScrollMedia.h" #import "SUNScrollTableViewCell.h" and add its delegate SunHorizontalScrollViewDelegate.

- (SunHorizontalScrollView *)scrollView {
    if (!_scrollView) {
        _scrollView = [SunHorizontalScrollView new];
        _scrollView.delegate = self;

        _scrollView.flowLayout.itemSize     = CGSizeMake(SUNScrollTableViewCellImageWidth, SUNScrollTableViewCellImageHeight);
        _scrollView.flowLayout.sectionInset = UIEdgeInsetsMake(SUNScrollTableViewCellTopInset, SUNScrollTableViewCellLeftInset, SUNScrollTableViewCellBottomInset, SUNScrollTableViewCellRightInset);
    }
    return _scrollView;
}

Requirements

iOS 7, Xcode 7

Author

sunbohong, [email protected]

License

SUNScrollTableViewCell is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "SunHorizontalScrollView",
    "version": "0.0.4",
    "summary": "An easy-to-use UIView subclass that implements a scrolling effect UIView with images",
    "homepage": "https://github.com/sunbohong/SunHorizontalScrollView",
    "license": "MIT",
    "authors": {
        "u5b59u535au5f18": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/sunbohong/SunHorizontalScrollView.git",
        "tag": "0.0.4"
    },
    "source_files": [
        "Classes",
        "SunHorizontalScrollView/SunHorizontalScrollView/Classes/*.{h,m}"
    ],
    "requires_arc": true,
    "dependencies": {
        "SDWebImage": []
    }
}

Pin It on Pinterest

Share This