{"id":13696349,"url":"https://github.com/maltsugar/RollingNotice","last_synced_at":"2025-05-03T17:30:50.988Z","repository":{"id":62453051,"uuid":"113527253","full_name":"maltsugar/RollingNotice","owner":"maltsugar","description":"所有的垂向滚屏这一个库就够了！！！滚动公告、轮播广告，支持灵活自定义cell。淘宝、口碑、京东、美团、天猫等等一切滚动广告 Roll Notice or Advertising, customize cell as UITableViewCell supported, Swift version is also ready","archived":false,"fork":false,"pushed_at":"2020-04-15T13:15:00.000Z","size":1348,"stargazers_count":481,"open_issues_count":9,"forks_count":68,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-03T13:03:32.843Z","etag":null,"topics":["advertisement","cocoapods","marquee","noticeboard","rooling","scroll","swift"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maltsugar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-08T03:32:27.000Z","updated_at":"2025-04-28T08:31:43.000Z","dependencies_parsed_at":"2022-11-01T23:46:29.802Z","dependency_job_id":null,"html_url":"https://github.com/maltsugar/RollingNotice","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltsugar%2FRollingNotice","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltsugar%2FRollingNotice/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltsugar%2FRollingNotice/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maltsugar%2FRollingNotice/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maltsugar","download_url":"https://codeload.github.com/maltsugar/RollingNotice/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252226629,"owners_count":21714834,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advertisement","cocoapods","marquee","noticeboard","rooling","scroll","swift"],"created_at":"2024-08-02T18:00:38.707Z","updated_at":"2025-05-03T17:30:50.560Z","avatar_url":"https://github.com/maltsugar.png","language":"Objective-C","funding_links":[],"categories":["UI Components"],"sub_categories":[],"readme":"# 滚动公告、广告\n![](https://img.shields.io/badge/platform-iOS-red.svg)\u0026nbsp;![](https://img.shields.io/badge/language-Objective--C-orange.svg)\u0026nbsp;[![CocoaPods](http://img.shields.io/cocoapods/v/RollingNotice.svg?style=flat)](http://cocoapods.org/pods/RollingNotice)\u0026nbsp;![](https://img.shields.io/badge/license-MIT%20License-brightgreen.svg)\n\n##### [English](https://github.com/maltsugar/RollingNotice/blob/master/README_en.md)\n##### [Swift 版本](https://github.com/maltsugar/RollingNotice-Swift)\n\n\n### 版本记录\n\n- 1.1.1 修复[#16](https://github.com/maltsugar/RollingNotice/issues/16)、[#17](https://github.com/maltsugar/RollingNotice/issues/17)，感谢[@xygkevin](https://github.com/xygkevin)\n- 1.1.0 新增暂停/恢复功能\n- 1.0.9 数据源返回数量为0时，不再显示cell\n- 1.0.8 普通用法textLabel支持左右间距设置\n- 1.0.6 delegate和dataSource使用weak修饰，更加安全合理，代理、数据源释放时属性自动置nil\n- 1.0.5 小更新，修改readme里一个单词拼写错误，去掉动画block里self强引用提示\n- 1.0.4 支持xib创建滚动视图[#9](https://github.com/maltsugar/RollingNotice/issues/9)\n- 1.0.3 修复极少数情况下，动画过程退到后台，可能出现残影的bug，感谢[@pcjbird](https://github.com/pcjbird)指出并帮忙修复\n\n\n### 经历\n前一段时间遇到了滚动公告的需求，搜了好多天，发现没有简单明了的库可用。大神们写的都太复杂了，star比较高的两个，一个不支持动态刷新标题，一个甚至写了循环scrollView的功能，功能太过强大，我认为比较庞大，就没有用了(我本人喜欢简洁一点的库)。后来找了一个简单的[WCScrollLabelView](https://github.com/Verchen/WCScrollLabelView)，算是符合我的预期，然鹅我又给他改[两个bug](https://github.com/Verchen/WCScrollLabelView/issues/1)，一个是timer不释放，一个是只有一个label时有问题。😅\n\n---\n于是就有了这个开源库，很曲折啊。闲暇时间写了一个，非常灵活。\n\n### 特点：\n\n- UITableView设计理念， 开发者只需要自定义自己的view（想要多复杂的View都行） 并根据index赋值，轮播交给它。\n- 简单一行文字轮播用自带的cell， 复杂的自定义cell\n- cell 支持重用，目前一种cell最多创建2个\n- 支持动态刷新数据源，多种cell混用\n- 用法几乎和UITableView一样\n\n\n希望大家共同进步，有问题欢迎issue\n### 用法\n几乎和UITableView一样的体验，自定义cell的话`必须`继承`GYNoticeViewCell`，你只管自定义你的View，并根据index赋值，轮播交给它。\n具体用法demo 里有的！\n\n- 手动下载: `GYRollingNoticeView`拖进去\n- Cocoapods: `pod 'RollingNotice'`\n\n\n![](http://wx3.sinaimg.cn/mw690/72aba7efgy1fmdy022ow6g20bn08g0xn.gif)\n\n### 许可证\n转载请注明出处，谢谢\n\nGYRollingNoticeView 使用 MIT 许可证，详情见 LICENSE 文件。\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaltsugar%2FRollingNotice","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaltsugar%2FRollingNotice","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaltsugar%2FRollingNotice/lists"}