Code Monkey home page Code Monkey logo

dengfulei / rollingnotice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from maltsugar/rollingnotice

0.0 1.0 0.0 1.32 MB

所有的垂向滚屏这一个库就够了!!!滚动公告、轮播广告,支持灵活自定义cell。淘宝、口碑、京东、美团、天猫等等一切滚动广告 Roll Notice or Advertising, customize cell as UITableViewCell supported, Swift version is also ready

License: MIT License

Objective-C 83.32% Ruby 16.68%

rollingnotice's Introduction

滚动公告、广告

  CocoaPods 

版本记录

  • 1.1.1 修复#16#17,感谢@xygkevin
  • 1.1.0 新增暂停/恢复功能
  • 1.0.9 数据源返回数量为0时,不再显示cell
  • 1.0.8 普通用法textLabel支持左右间距设置
  • 1.0.6 delegate和dataSource使用weak修饰,更加安全合理,代理、数据源释放时属性自动置nil
  • 1.0.5 小更新,修改readme里一个单词拼写错误,去掉动画block里self强引用提示
  • 1.0.4 支持xib创建滚动视图#9
  • 1.0.3 修复极少数情况下,动画过程退到后台,可能出现残影的bug,感谢@pcjbird指出并帮忙修复

经历

前一段时间遇到了滚动公告的需求,搜了好多天,发现没有简单明了的库可用。大神们写的都太复杂了,star比较高的两个,一个不支持动态刷新标题,一个甚至写了循环scrollView的功能,功能太过强大,我认为比较庞大,就没有用了(我本人喜欢简洁一点的库)。后来找了一个简单的WCScrollLabelView,算是符合我的预期,然鹅我又给他改两个bug,一个是timer不释放,一个是只有一个label时有问题。😅


于是就有了这个开源库,很曲折啊。闲暇时间写了一个,非常灵活。

特点:

  • UITableView设计理念, 开发者只需要自定义自己的view(想要多复杂的View都行) 并根据index赋值,轮播交给它。
  • 简单一行文字轮播用自带的cell, 复杂的自定义cell
  • cell 支持重用,目前一种cell最多创建2个
  • 支持动态刷新数据源,多种cell混用
  • 用法几乎和UITableView一样

希望大家共同进步,有问题欢迎issue

用法

几乎和UITableView一样的体验,自定义cell的话必须继承GYNoticeViewCell,你只管自定义你的View,并根据index赋值,轮播交给它。 具体用法demo 里有的!

  • 手动下载: GYRollingNoticeView拖进去
  • Cocoapods: pod 'RollingNotice'

许可证

转载请注明出处,谢谢

GYRollingNoticeView 使用 MIT 许可证,详情见 LICENSE 文件。

rollingnotice's People

Contributors

maltsugar avatar

Watchers

James Cloos 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.