SunHorizontalScrollView 0.0.4

SunHorizontalScrollView 0.0.4

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Sep 2015

Maintained by sunbohong.



  • By
  • 孙博弘

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.