{"id":18271236,"url":"https://github.com/honcheng/iOS-StyledPageControl","last_synced_at":"2025-04-05T01:31:09.517Z","repository":{"id":1496068,"uuid":"1748211","full_name":"honcheng/iOS-StyledPageControl","owner":"honcheng","description":"Customizable PageControl for iOS","archived":false,"fork":false,"pushed_at":"2020-07-24T18:42:34.000Z","size":642,"stargazers_count":526,"open_issues_count":9,"forks_count":114,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-10-10T05:35:22.893Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://honcheng.com","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/honcheng.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":"2011-05-14T16:46:43.000Z","updated_at":"2024-08-05T22:02:05.000Z","dependencies_parsed_at":"2022-08-16T13:25:19.448Z","dependency_job_id":null,"html_url":"https://github.com/honcheng/iOS-StyledPageControl","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honcheng%2FiOS-StyledPageControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honcheng%2FiOS-StyledPageControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honcheng%2FiOS-StyledPageControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/honcheng%2FiOS-StyledPageControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/honcheng","download_url":"https://codeload.github.com/honcheng/iOS-StyledPageControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234921,"owners_count":20905854,"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":[],"created_at":"2024-11-05T11:39:10.466Z","updated_at":"2025-04-05T01:31:09.492Z","avatar_url":"https://github.com/honcheng.png","language":"Objective-C","readme":"Customizable PageControl for iOS\n=============\n\n\u003cimg src=\"https://github.com/honcheng/iOS-StyledPageControl/raw/master/screenshot.png\"/\u003e\n\nStyledPageControl is a customizable replacement for UIPageControl for iOS. \n\nFeatures\n--------\n* 5 Styles\n* change colors\n* change diameter\n* change gap width\n* change stroke width\n* show current page number\n* use custom images\n\nUsage\n-----\n\n1) Drag StyledPageControl.h and StyledPageControl.m into your project. \n\n    #import StyledPageControl.h\n\n2) Create StyledPageControl just like a UIPageControl\n\n    StyledPageControl *pageControl = [[StyledPageControl alloc] init];\n\t[self addSubview:pageControl];\n\t\n3) Set page control style\n\n\t[pageControl setPageControlStyle:PageControlStyleDefault]; \n\t\n4) Set number of pages\n\n\t[pageControl setNumberOfPages:10];\n\t\n5) Set current page\n\n\t[pageControl setCurrentPage:5];\n\t\n6) Change page control colors\n\t\n    [pageControl setCoreNormalColor:[UIColor colorWithRed:0 green:0 blue:0 alpha:1]];\n    [pageControl setCoreSelectedColor:[UIColor colorWithRed:0.8 green:0.2 blue:0.2 alpha:1]];\n\t\n7) Change distance between dots\n\t\n\t[pageControl setGapWidth:5];\n\t\n8) Change dot's diameter\n\t\n\t[pageControl setDiameter:9];\n\t\n9) Use custom thumbnails\n\t\n    [pageControl setPageControlStyle:PageControlStyleThumb];\n    [pageControl setThumbImage:[UIImage imageNamed:@\"pagecontrol-thumb-normal.png\"]];\n    [pageControl setSelectedThumbImage:[UIImage imageNamed:@\"pagecontrol-thumb-selected.png\"]];\n\t\n\nMinimum Requirements\n--------------------\n* ARC - this project uses ARC. If you are not using ARC in your project, add '-fobjc-arc' as a compiler flag for StyledPageControl.h and StyledPageControl.m\n* XCode 4.4 and newer (auto-synthesis required)\n\nContact\n-------\n\n[twitter.com/honcheng](http://twitter.com/honcheng)  \n[honcheng.com](http://honcheng.com)\n\n![](http://www.cocoacontrols.com/analytics/honcheng/ios-styledpagecontrol.png)","funding_links":[],"categories":["etc"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoncheng%2FiOS-StyledPageControl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoncheng%2FiOS-StyledPageControl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoncheng%2FiOS-StyledPageControl/lists"}