PSCarouselView

A drop-in carousel view. Most of Apps put it in their first screen.

Github星跟踪图

PSCarouselView

Codacy Badge
docs
Pod Version
License
Platform
SwiftCompatible

A drop-in carousel view. Most Applications put it in their first screen. 中文


Preview

image

Enhancement

Storyboard inspector supported since version 1.1.0

image

Installation with CocoaPods

Specify it in your podfile:

pod 'PSCarouselView'

Then, run the following command:

$ pod install

Install manually

Clone project, add PSCarouselView folder to your project and don't forget check the copy item if needed box.

SDWebImage framework required. Make sure you had imported SDWebImage when install PSCarouselView manually.

Getting Start

1.Drag a UICollectionView into your Storyboard and make sure your constraints has been set.

2.Set PSCarouselView as a custom class for this collectionView in Storyboard Inspector.

custom class

3.Connect IBOutlet to Your ViewController.

@interface ViewController ()<PSCarouselDelegate>

@property (weak, nonatomic) IBOutlet PSCarouselView *carouselView;

4.Set value for PSCarouselView's imageURL property.

5.Implement PSCarouselDelegate if you want to make a pageControl.

- (void)carousel:(PSCarouselView *)carousel didMoveToPage:(NSUInteger)page
{
    self.pageControl.currentPage = page;
}

- (void)carousel:(PSCarouselView *)carousel didTouchPage:(NSUInteger)page
{
    NSLog(@"PSCarouselView did TOUCH No.%ld page",page);
}

API Reference

shengpan.net or CocoaPods Doc

For more,download and see the demo。

LICENSE

MIT

主要指标

概览
名称与所有者MrPans/PSCarouselView
主编程语言Objective-C
编程语言Objective-C, Ruby, Swift, HTML, CSS, JavaScript (语言数: 6)
平台
许可证MIT License
所有者活动
创建于2015-08-13 10:02:31
推送于2020-01-03 18:07:19
最后一次提交2019-06-11 21:07:34
发布数19
最新版本名称1.6.1 (发布于 2018-05-02 21:16:58)
第一版名称1.0.1 (发布于 2015-12-16 00:14:50)
用户参与
星数150
关注者数6
派生数42
提交数125
已启用问题?
问题数9
打开的问题数0
拉请求数4
打开的拉请求数0
关闭的拉请求数2
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?