{"id":13696422,"url":"https://github.com/PageGuo/NewPagedFlowView","last_synced_at":"2025-05-03T17:31:14.541Z","repository":{"id":50430029,"uuid":"64736335","full_name":"PageGuo/NewPagedFlowView","owner":"PageGuo","description":"电影票卡片式无限自动轮播图","archived":false,"fork":false,"pushed_at":"2020-01-03T20:34:07.000Z","size":6397,"stargazers_count":862,"open_issues_count":27,"forks_count":181,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-08-03T18:20:58.267Z","etag":null,"topics":["banner","carousel","flowview"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/PageGuo.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}},"created_at":"2016-08-02T07:51:49.000Z","updated_at":"2024-07-17T10:11:32.000Z","dependencies_parsed_at":"2022-08-05T04:30:29.110Z","dependency_job_id":null,"html_url":"https://github.com/PageGuo/NewPagedFlowView","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/PageGuo%2FNewPagedFlowView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PageGuo%2FNewPagedFlowView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PageGuo%2FNewPagedFlowView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PageGuo%2FNewPagedFlowView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PageGuo","download_url":"https://codeload.github.com/PageGuo/NewPagedFlowView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224369532,"owners_count":17299917,"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":["banner","carousel","flowview"],"created_at":"2024-08-02T18:00:39.717Z","updated_at":"2024-11-13T00:30:31.649Z","avatar_url":"https://github.com/PageGuo.png","language":"Objective-C","funding_links":[],"categories":["UI Components"],"sub_categories":[],"readme":"# NewPagedFlowView 3.2.1\n### 1.实现了什么功能\n* 页面滚动的方向分为横向和纵向\n* 目的:实现类似于选择电影票的效果,并且实现无限/自动轮播\n* 特点:1.无限轮播;2.自动轮播;3.电影票样式的层次感;4.非当前显示view具有缩放和透明的特效\n\n### 2.版本信息\n\n##### Version 3.2.1:\n\n * 添加参数(leftRightMargin、topBottomMargin)可自定义控制上下左右间距\n * 修复部分bug.\n * pageSize使用更方便\n * 增加adjustCenterSubview，卡住一半时可以调用;\n\n**具体含义请看源代码, 如发现bug请联系:799573715@qq.com (2017-05-08)**\n***\n##### Version 3.1.0:\n\n * 添加参数控制是否支持无限轮播\n * 左右滑动透明度的bug修复.\n\n**具体含义请看源代码, 如发现bug请联系:799573715@qq.com (2017-02-07)**\n***\n##### Version 3.0.0:\n\n * 弃用layoutSubviews，需要手动调用reloadData，方便懒加载等;\n * 子控件支持跟随父控件进行缩放；\n * 定时器添加到NSRunLoop，UIScrollview滚动时继续轮播。\n\n**具体含义请看源代码, 如发现bug请联系:799573715@qq.com (2016-10-10)**\n***\n##### Version 2.0.1:\n\n * 是否进行自动轮播更新为参数控制,isOpenAutoScroll;\n * 解决reloadData的bug\n * 解决iOS8运行时重叠的bug\n\n**具体含义请看源代码, 如发现bug请联系:799573715@qq.com (2016-08-30)**\n***\n\n##### Version 1.0.0:\n* 页面滚动的方向分为横向和纵向\n* 目的:实现类似于选择电影票的效果,并且实现无限/自动轮播\n* 特点:1.无限轮播;2.自动轮播;3.电影票样式的层次感;4.非当前显示view具有缩放和透明的特效\n\n***\n### 3.动画效果\n\u003cimg src=\"gif/NewPagedFlowViewGif.gif\" width=\"100%\"\u003e\n\u003c/br\u003e动图请移步:\u003c/br\u003e\n  \u003ca href=\"http://example.com/\"\u003ehttp://ww4.sinaimg.cn/mw690/9c6a8c79jw1f6geyiao4tg20a00dc4qu.gif\u003c/a\u003e\n\n### 4.功能介绍\n\t/**\n     *  是否开启自动滚动,默认为开启\n     */\n    @property (nonatomic, assign) BOOL isOpenAutoScroll;\n    /**\n     *  是否开启无限轮播,默认为开启\n     */\n    @property (nonatomic, assign) BOOL isCarousel;\n    /**\n     * 左右间距,默认20\n     */\n    @property (nonatomic, assign) CGFloat leftRightMargin;\n\n    /**\n     * 上下间距,默认30\n    */\n    @property (nonatomic, assign) CGFloat topBottomMargin;\n\n\t/**\n\t *  关闭定时器,关闭自动滚动\n\t */\n\t- (void)stopTimer;\n\t\n\t\n**代理方法的使用**\n\n    @protocol  NewPagedFlowViewDelegate\u003cNSObject\u003e\n\n\t/**\n\t *  单个子控件的Size\n\t *\n\t *  @param flowView \u003c#flowView description#\u003e\n\t *\n\t *  @return \u003c#return value description#\u003e\n\t*/\n\t- (CGSize)sizeForPageInFlowView:(NewPagedFlowView *)flowView;\n\n\t@optional\n\t/**\n\t *  滚动到了某一列\n\t *\n\t *  @param pageNumber \u003c#pageNumber description#\u003e\n\t *  @param flowView   \u003c#flowView description#\u003e\n\t */\n\t- (void)didScrollToPage:(NSInteger)pageNumber inFlowView:(NewPagedFlowView *)flowView;\n\t\n\t/**\n     *  点击了第几个cell\n     *\n     *  @param subView 点击的控件\n     *  @param subIndex    点击控件的index\n     *\n     *  @return \u003c#return value description#\u003e\n     */\n     - (void)didSelectCell:(UIView *)subView withSubViewIndex:(NSInteger)subIndex;\n\n\t@end\n\t\n    @protocol NewPagedFlowViewDataSource \u003cNSObject\u003e\n\n    /**\n    *  返回显示View的个数\n    *\n    *  @param flowView \u003c#flowView description#\u003e\n    *\n    *  @return \u003c#return value description#\u003e\n    */\n    - (NSInteger)numberOfPagesInFlowView:(NewPagedFlowView *)flowView;\n\n\t/**\n\t*  给某一列设置属性\n\t*\n\t*  @param flowView \u003c#flowView description#\u003e\n \t*  @param index    \u003c#index description#\u003e\n \t*  @return \u003c#return value description#\u003e\n\t*/\n    - (UIView *)flowView:(NewPagedFlowView *)flowView \tcellForPageAtIndex:(NSInteger)index;\n\n\t@end\n\n### 5.代码示例\n    NewPagedFlowView *pageFlowView = [[NewPagedFlowView alloc] initWithFrame:CGRectMake(0, 64, Width, (Width - 84) * 9 / 16 + 24)];\n    pageFlowView.backgroundColor = [UIColor whiteColor];\n    pageFlowView.delegate = self;\n    pageFlowView.dataSource = self;\n    pageFlowView.minimumPageAlpha = 0.4;\n    pageFlowView.minimumPageScale = 0.85;\n    \n    //初始化pageControl\n    UIPageControl *pageControl = [[UIPageControl alloc] initWithFrame:CGRectMake(0, pageFlowView.frame.size.height - 24 - 8, Width, 8)];\n    pageFlowView.pageControl = pageControl;\n    [pageFlowView addSubview:pageControl];\n    [pageFlowView startTimer];\n    [self.view addSubview:pageFlowView];\n**具体含义请看源代码, Designed By Page,QQ:799573715 **\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPageGuo%2FNewPagedFlowView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPageGuo%2FNewPagedFlowView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPageGuo%2FNewPagedFlowView/lists"}