Coder Social home page Coder Social logo

colloctionview-banner's Introduction

ColloctionView-banner

ColloctionView循环滚动控件,考虑到程序的效率,以及用户体验写的。

能适应用户手指不离开屏幕一直滑动的极端情况,实现思路在注释中有详细说明

使用方式:

    CircleScrollView *scrollView = [[CircleScrollView alloc] initWithFrame:CGRectMake(0, 20, 375, 175)];
    scrollView.delegate = self;
    [scrollView images:@[[UIImage imageNamed:@"占位图"]]];   // 可设置占位图
    
    // 等网络下好图片在替换上
    [scrollView images:@[m1, m2]];   
    scrollView.duringTime = 1.0;        // 设置轮播时间
    [self.view addSubview:scrollView];
    
    // 图片可以点击,有代理方法传出点击 index
    - (void)didClickImageAtIndex:(NSInteger)index scrollView:(CircleScrollView *)scrollView;

如果您发现程序有问题,欢迎反馈,谢谢,我的QQ:657668857,或者邮箱[email protected]

colloctionview-banner's People

Contributors

hehe520 avatar

Watchers

 avatar  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.