{"id":22691915,"url":"https://github.com/cmst0us/erslideshow","last_synced_at":"2025-03-29T16:43:28.676Z","repository":{"id":162874477,"uuid":"89587790","full_name":"CmST0us/ERSlideShow","owner":"CmST0us","description":"ERSlideShow 是一个支持Auto Layout的轮播组件","archived":false,"fork":false,"pushed_at":"2017-04-27T11:04:49.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-04T17:52:19.908Z","etag":null,"topics":["autolayout","autolayout-constraints","ios","slideshow"],"latest_commit_sha":null,"homepage":null,"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/CmST0us.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-04-27T10:55:48.000Z","updated_at":"2019-11-06T14:36:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c9a1972-0ca4-4eaa-893e-16067bc4d5f4","html_url":"https://github.com/CmST0us/ERSlideShow","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/CmST0us%2FERSlideShow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CmST0us%2FERSlideShow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CmST0us%2FERSlideShow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CmST0us%2FERSlideShow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CmST0us","download_url":"https://codeload.github.com/CmST0us/ERSlideShow/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246215816,"owners_count":20741894,"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":["autolayout","autolayout-constraints","ios","slideshow"],"created_at":"2024-12-10T01:12:53.388Z","updated_at":"2025-03-29T16:43:28.618Z","avatar_url":"https://github.com/CmST0us.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ERSlideShow\n\nERSlideShow 是一款iOS平台能支持Auto Layout的轮播组件\n\n## 特性\n1. 支持使用Interface Builder可视化Auto Layout创建实例\n2. 支持使用传统`initWithFrame:`创建实例\n3. 支持使用`addConstraints:`添加约束\n\n## 示例\n\n```\n//从StoryBoard创建\n    [_slideShow setSlides:@[lb1, lb2, lb3, lb4]];\n    [_slideShow setDelegate:self];\n    [_slideShow setSlideShowMethod:ERSlideShowMethodLoop];\n    [_slideShow autoScrollWithDuration:2.0];\n```\n\n```\n//代码构建\n    _slideShow2 = [[ERSlideShow alloc]initWithFrame:CGRectMake(0, 400, 200, 100)];\n    [_slideShow2 setSlides:@[lb11, lb12, lb13, lb14]];\n    [_slideShow2 setDelegate:self];\n    [_slideShow2 setSlideShowMethod:ERSlideShowMethodLoop];\n    [_slideShow2 autoScrollWithDuration:2.0];\n    [self.view addSubview:_slideShow2];\n```\n\n```    \n    _slideShow3 = [[ERSlideShow alloc]init];\n    [_slideShow3 setSlides:@[lb21, lb22, lb23, lb24] showMethod:ERSlideShowMethodJump];\n    [_slideShow3 setDelegate:self];\n    [_slideShow3 autoScrollWithDuration:2.0];\n    [_slideShow3 setTranslatesAutoresizingMaskIntoConstraints:NO];\n    [self.view addSubview:_slideShow3];\n    \n    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@\"V:[_slideShow3(==100)]-(8)-|\" options:NSLayoutFormatAlignAllLeading metrics:nil views:NSDictionaryOfVariableBindings(_slideShow3)]];\n    [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@\"H:|-(8)-[_slideShow3(==200)]\" options:NSLayoutFormatAlignAllLeading metrics:nil views:NSDictionaryOfVariableBindings(_slideShow3)]];\n```\n\n----------------\n欢迎指出问题\n\n`CmST0us`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmst0us%2Ferslideshow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcmst0us%2Ferslideshow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcmst0us%2Ferslideshow/lists"}