Giter VIP home page Giter VIP logo

pscarouselview's Introduction

Logo

PSCarouselView Logo

PSCarouselView

Build Status 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

pscarouselview's People

Contributors

mrpans avatar gonghao avatar bryant1410 avatar

Watchers

James Cloos avatar shiqiuer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.