美文网首页
JXRollView (无限轮播)

JXRollView (无限轮播)

作者: CoderSun | 来源:发表于2016-05-05 20:45 被阅读0次

JXRollView is an infinite carousel view, or call it AD view.

JXRollView different from the general idea of the switching carousel, the worst is no switch, the general is in a page after the end of the rolling switch, the so-called a shift in the user did not feel, this line of thinking realize if rapid slide in first and last item often stuck and even slip past. But JXRollView's idea is that when the first and last page is rolling more than half(middle) to switch the page, there will be no edge effect.

JXRollView can be installed through CocoaPods. Really so simple.

pod 'JXRollView'

View detail in GitHub, or Download immediately.

JXRollViewJXRollView

The easiest way to create an infinite loop scroll view.

JXRollViewJXRollView

TwitterTwitter

Installation with CocoaPods

CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like JXRollView in your projects.You can install it with the following command:

pod 'JXRollView'

Installation through manually

  1. Download the latest version.

  2. Open your project in Xcode, then drag and drop JXRollView.h and JXRollView.m 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 JXRollView wherever you need it with #import "JXRollView.h".

How To Get Started

1. Create JXRollView.

- (instancetype)initWithFrame:(CGRect)frame;
or outlet from (IB)Xib.
@property (weak, nonatomic) IBOutlet JXRollView *rollViewInstance;

2. Implement the method of JXRollViewDelegate.

@protocol JXRollViewDelegate <NSObject>

@required
- (NSInteger)numberOfItemsInRollView:(nonnull JXRollView *)rollView;
- (void)rollView:(nonnull JXRollView *)rollView setImageForImageView:(nonnull UIImageView *)imageView atIndex:(NSInteger)index;

@optional
- (void)rollView:(nonnull JXRollView *)rollView didTapItemAtIndex:(NSInteger)index;

@end

3. It reload data.

- (void)reloadData;

License

JXRollView is distributed under the terms and conditions of the MIT LICENSE.

相关文章

  • JXRollView (无限轮播)

    JXRollView is an infinite carousel view, or call it AD vi...

  • JXRollView 图片无限轮播

    附上guthub地址:https://github.com/augsun/JXRollView

  • 4.6无限轮播

    无限轮播跟左右轮播还是有区别的.无限轮播就是自己无限的轮播下去.不经过人为的触发,不过它的原理还是与左边的距离为参...

  • 收集一个很好用的无限轮播

    无限轮播

  • 轮播图的制作

    这是渐变方法的无限轮播哈哈,附带autoPlay无缝无限轮播多个carouselcarousel-fullscreen

  • [iOS]定制性强的广告轮播图--SCAdView

    @[无限轮播图] @[3D轮播图] @[广告轮播图] SCAdView Statement If my code ...

  • Swift 无限轮播+自动无限轮播

    title: Swift Image browserdate: 2016-10-20 12:46:08catego...

  • Banner

    需求如下:(1)无限循环轮播(2)定时轮播(3)添加PageControl

  • 无限轮播

    demo轮播有好多种实现方法,当然,如果说是靠控制元素的隐藏消失和出现,这不算是轮播,轮播有种动起来的意思,就是要...

  • 无限轮播

    最近在准备毕业论文和毕业设计的事情,也是比较忙,许久未写博客了。之前一直想写一个自己的无限轮播,于是乎写出来和大家...

网友评论

      本文标题:JXRollView (无限轮播)

      本文链接:https://www.haomeiwen.com/subject/snahrttx.html