{"id":13684629,"url":"https://github.com/tingxins/TXScrollLabelView","last_synced_at":"2025-05-01T00:32:16.082Z","repository":{"id":56923525,"uuid":"71455445","full_name":"tingxins/TXScrollLabelView","owner":"tingxins","description":"🌭TXScrollLabelView, the best way to show \u0026 display information such as adverts / boardcast / onsale e.g. with a customView.","archived":false,"fork":false,"pushed_at":"2022-11-21T11:00:45.000Z","size":1911,"stargazers_count":729,"open_issues_count":17,"forks_count":127,"subscribers_count":12,"default_branch":"master","last_synced_at":"2024-11-11T12:04:35.583Z","etag":null,"topics":["advert","broadcast","cocoapods","cycle","ios","label","marquee","scroll","scrolling","scrollview"],"latest_commit_sha":null,"homepage":"https://tingxins.com/2016/11/scrolling-txscrolllabelview/","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/tingxins.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":"2016-10-20T11:15:44.000Z","updated_at":"2024-10-15T16:22:02.000Z","dependencies_parsed_at":"2022-08-21T05:20:31.242Z","dependency_job_id":null,"html_url":"https://github.com/tingxins/TXScrollLabelView","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingxins%2FTXScrollLabelView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingxins%2FTXScrollLabelView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingxins%2FTXScrollLabelView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tingxins%2FTXScrollLabelView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tingxins","download_url":"https://codeload.github.com/tingxins/TXScrollLabelView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224230568,"owners_count":17277372,"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":["advert","broadcast","cocoapods","cycle","ios","label","marquee","scroll","scrolling","scrollview"],"created_at":"2024-08-02T14:00:35.931Z","updated_at":"2024-11-12T06:30:22.931Z","avatar_url":"https://github.com/tingxins.png","language":"Objective-C","readme":"\u003cp align=\"center\"\u003e\n\n\u003cimg src=\"https://tingxins.com/assets/histories/TXScrollLabelView/master/scroll-label-view.png\" width=600/\u003e\n\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n\n\u003ca href=\"https://travis-ci.org/tingxins/TXScrollLabelView\"\u003e\u003cimg src=\"https://img.shields.io/travis/tingxins/TXScrollLabelView.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/Carthage/Carthage\"\u003e\u003cimg src=\"https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"http://cocoadocs.org/docsets/TXScrollLabelView\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/v/TXScrollLabelView.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/tingxins/TXScrollLabelView\"\u003e\u003cimg src=\"https://img.shields.io/cocoapods/p/TXScrollLabelView.svg?style=flat\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/tingxins/TXScrollLabelView\"\u003e\u003cimg src=\"https://img.shields.io/badge/support-iOS%207%2B-brightgreen.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.apache.org/licenses/LICENSE-2.0.html\"\u003e\u003cimg src=\"http://img.shields.io/cocoapods/l/TXScrollLabelView.svg?style=flat\"\u003e\u003c/a\u003e\n\n\n\u003c/p\u003e\n\n`TXScrollLabelView` is an iOS lightweight library that can displays adverts or boardcast e.g. with an custom view.\n\n\u003e [中文介绍](http://www.jianshu.com/p/8f1f1b1ee814)\n\n![x-scroll-label-view](https://tingxins.com/assets/histories/TXScrollLabelView/master/x-scroll-label-view.gif)\n\n## Support what kinds of scrollType\n\n- **TXScrollLabelViewTypeLeftRight** : scrolling from right to left, and cycle all contents(`scrollTitle`) in a single line.\n\n\n- **TXScrollLabelViewTypeUpDown**: scrolling from bottom to top, and cycle all contents.\n\n\n- **TXScrollLabelViewTypeFlipRepeat**: scrolling from bottom to top, and cycle the first line of your contents.\n\n\n- **TXScrollLabelViewTypeFlipNoRepeat**: scrolling from bottom to top, and cycle all contents with a line once times.\n\nAnd `scrollVelocity` property now supports all above enum of `TXScrollLabelViewType`, just enjoy it!\n\n## Installation\n\nThere are three ways to use TXScrollLabelView in your project:\n\n* Using CocoaPods\n\n* Manual\n\n* Using Carthage\n\n### CocoaPods\n    \nCocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries in your projects. \n\n**Podfile**\n\n    platform :ios, '7.0'\n    pod 'TXScrollLabelView'\n\n### Manual\n\nDownload repo's zip, and just drag **ALL** files in the TXScrollLabelView folder to your projects. Import header file when you are using:\n\n    #import \"TXScrollLabelView.h\"\n   \n### Carthage\n\n[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.\n\nYou can install Carthage with [Homebrew](http://brew.sh/) using the following command:\n\n    $ brew update\n    $ brew install carthage\n        \nTo integrate **TXScrollLableView** into your Xcode project using Carthage, specify it in your Cartfile:\n\n    github \"tingxins/TXScrollLableView\"\n\nRun carthage to build the frameworks and drag the framework into your Xcode project.\n        \n## Usage \n\nNow, TXScrollLabelView supports both **array \u0026 string**. just enjoy it. 👀\n\n### Example\n\n**Objective-C :**\n\n    /** Step1: 滚动文字 */\n    NSString *scrollTitle = @\"xxxxxx\";\n    \n    /** Step2: 创建 ScrollLabelView */\n    TXScrollLabelView *scrollLabelView = [TXScrollLabelView scrollWithTitle:scrollTitle type:TXScrollLabelViewTypeFlipNoRepeat velocity:velocity options:UIViewAnimationOptionCurveEaseInOut];\n    \n    /** Step3: 设置代理进行回调(Optional) */\n    scrollLabelView.scrollLabelViewDelegate = self;\n    \n    /** Step4: 布局(Required) */\n    scrollLabelView.frame = CGRectMake(50, 100, 300, 30);\n    [self.view addSubview:scrollLabelView];\n    \n    /** Step5: 开始滚动(Start scrolling!) */\n    [scrollLabelView beginScrolling];\n        \n        \nYou can running **TXScrollLabelViewDemo** for more details.\n\n**Swift :** Producting.([**Swift-version**](https://github.com/tingxins/ScrollLabelView))\n\n### Delegate Method\n\nTap Gesture callback.\n\n```\n\n- (void)scrollLabelView:(TXScrollLabelView *)scrollLabelView didClickWithText:(NSString *)text atIndex:(NSInteger)index;\n\n```\n\n## Communication\n\nAbsolutely，you can contribute to this project all the time if you want to.\n\n- If you **need help or ask general question**, just [**@tingxins**](http://weibo.com/tingxins) in `Weibo` or `Twitter`, ofcourse, you can access to my [**blog**](https://tingxins.com).\n\n- If you **found a bug**, just open an issue.\n\n- If you **have a feature request**, just open an issue.\n\n- If you **want to contribute**, fork this repository, and then submit a pull request.\n\n## License\n\n`TXScrollLabelView` is available under the MIT license. See the LICENSE file for more info.\n\n## Ad\n\nWelcome to my Official Account of WeChat.\n\n![wechat-qrcode](https://tingxins.github.io/assets/histories/adv/wechat-qrcode.jpg)\n\n","funding_links":[],"categories":["Objective-C"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftingxins%2FTXScrollLabelView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftingxins%2FTXScrollLabelView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftingxins%2FTXScrollLabelView/lists"}