sunbohong / SunHorizontalScrollView

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SunHorizontalScrollView

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, sunbohong@gmail.com

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

About

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

License:MIT License


Languages

Language:Objective-C 97.4%Language:Shell 2.2%Language:Ruby 0.3%