Giter Club home page Giter Club logo

drimgcollectionview's Introduction

DRImgCollectionView

无限循环轮播---UICollectionView实现方式 自由度很高的自定义滚动方向、分页指示器位置、样式

####导入工程: 方式1、 使用cocoapods

  pod 'DRImgCollectionView', '~> 1.0.0'

在自己的项目中

   #import "DRImgCollectionView.h"

方式2、 下载工程,将最底层的DRImgCollectionView文件夹拖入工程

在自己的项目中

   #import "DRImgCollectionView.h"

####使用方法:

DRImgCollectionView *imgViews = [[DRImgCollectionView alloc] initWithFrame:frame                    // 设置frame
                                                               andImgArray:imgArray                 // 图片数据源数组 以image0、image1命名
                                                                  dotColor:[UIColor yellowColor]    // 分页指示器 点的颜色
                                                                  dotSize:10];                      // 分页指示器 点的大小
[imgViews setAttributeListWithDirection:UICollectionViewScrollDirectionHorizontal                   // 轮播图滚动方向
                               Location:PageControlLocRight                                         // 分页指示器位置
                               dotImage:nil                                                         // 分页指示器 自定义未选中指示图片
                        currentDotImage:nil                                                         // 分页指示器 自定义选中的指示图片
                        backgroundColor:[UIColor lightTextColor]];                                  // 分页指示器 背景颜色

drimgcollectionview's People

Contributors

jakajacky avatar

Watchers

 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.