{"id":18880852,"url":"https://github.com/keenteam1990/ktcyclescrollview","last_synced_at":"2026-02-20T20:30:20.328Z","repository":{"id":107584010,"uuid":"104696882","full_name":"KeenTeam1990/KTCycleScrollView","owner":"KeenTeam1990","description":"⏰Swift自动无限轮播用这个就够了","archived":false,"fork":false,"pushed_at":"2017-09-25T08:16:07.000Z","size":12414,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-31T03:23:33.327Z","etag":null,"topics":["kt","scroll","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KeenTeam1990.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-25T02:57:38.000Z","updated_at":"2017-09-30T02:08:41.000Z","dependencies_parsed_at":"2023-06-08T13:31:19.540Z","dependency_job_id":null,"html_url":"https://github.com/KeenTeam1990/KTCycleScrollView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeenTeam1990%2FKTCycleScrollView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeenTeam1990%2FKTCycleScrollView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeenTeam1990%2FKTCycleScrollView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KeenTeam1990%2FKTCycleScrollView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KeenTeam1990","download_url":"https://codeload.github.com/KeenTeam1990/KTCycleScrollView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239848225,"owners_count":19707115,"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":["kt","scroll","swift"],"created_at":"2024-11-08T06:46:18.612Z","updated_at":"2026-02-20T20:30:20.286Z","avatar_url":"https://github.com/KeenTeam1990.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"![image](https://github.com/KeenTeam1990/KTCycleScrollView/blob/master/screenshots/appicon.png)\n\n#####[ 超简单！！！ 一行代码设置状态栏、导航栏按钮、标题、颜色、透明度，移动等]\n------------------------------------------------------------\n\n## Requirements\n- iOS 8+\n- Xcode 8+\n\n\n## Demo \n\n---\n知乎日报\n\n![知乎日报](https://github.com/KeenTeam1990/KTCycleScrollView/blob/master/screenshots/知乎日报.gif)\n\n---\n本地图片轮播\n\n![本地图片轮播](https://github.com/KeenTeam1990/KTCycleScrollView/blob/master/screenshots/本地图片轮播.gif)\n\n---\n网络图片轮播\n\n![网络图片轮播](https://github.com/KeenTeam1990/KTCycleScrollView/blob/master/screenshots/网络图片轮播.gif)\n\n---\nStoryBoard创建\n\n![StoryBoard创建](https://github.com/KeenTeam1990/KTCycleScrollView/blob/master/screenshots/StoryBoard创建.gif)\n\n---\n不无限轮播\n\n![不无限轮播](https://github.com/KeenTeam1990/KTCycleScrollView/blob/master/screenshots/不无限轮播.gif)\n\n---\n不显示pageControl\n\n![不显示pageControl](https://github.com/KeenTeam1990/KTCycleScrollView/blob/master/screenshots/不显示pageControl.gif)\n\n\n## Installation \n\n\u003e **手动拖入**\n\u003e 将 KTCycleScroll 文件夹拽入项目中即可使用\n\n## How To Use\n\n\u003cpre\u003e\u003ccode\u003e\nvar cycleScrollView:KTCycleScrollView?\nlet height = 520 * kScreenWidth / 1080.0\nlet frame = CGRect(x: 0, y: 150, width: kScreenWidth, height: height)\n// 可加载网络图片或者本地图片\nlet serverImages = [\"http://p.lrlz.com/data/upload/mobile/special/s252/s252_05471521705899113.png\",              \"http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007678060723.png\",                  \"http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007587372591.png\",                    \"http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007388249407.png\",                    \"http://p.lrlz.com/data/upload/mobile/special/s303/s303_05442007470310935.png\"]\n// 构造方法\ncycleScrollView = KTCycleScrollView(frame: frame, type: .SERVER, imgs: serverImages)\nview.addSubview(cycleScrollView!)\n// 添加代理\ncycleScrollView?.delegate = self\n\u003c/code\u003e\u003c/pre\u003e\n\n代理方法\n\u003cpre\u003e\u003ccode\u003e\nextension ServerImgController: KTCycleScrollViewDelegate\n{\n    /// 点击图片事件\n    func cycleScrollViewDidSelect(at index:Int, cycleScrollView:WRCycleScrollView)\n    {\n        print(\"点击了第\\(index+1)个图片\")\n    }\n    \n    /// 图片滚动事件\n    func cycleScrollViewDidScroll(to index:Int, cycleScrollView:WRCycleScrollView)\n    {\n        print(\"滚动到了第\\(index+1)个图片\")\n    }\n}\n\u003c/code\u003e\u003c/pre\u003e\n\n\n# Contact me\n- 简书: [简书](http://www.jianshu.com/u/77e9dc523648)\n- GitHub: [GitHub](https://github.com/KeenTeam1990)\n- Email:  KeenTeam@163.com\n- QQ：812144991\n\n# License\n\nKTCycleScrollView is available under the MIT license. See the LICENSE file for more info.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenteam1990%2Fktcyclescrollview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkeenteam1990%2Fktcyclescrollview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkeenteam1990%2Fktcyclescrollview/lists"}