{"id":21374032,"url":"https://github.com/hackxhj/EllipsePageControl","last_synced_at":"2025-07-13T08:32:11.437Z","repository":{"id":47353799,"uuid":"98397489","full_name":"hackxhj/EllipsePageControl","owner":"hackxhj","description":"椭圆形 长方形 PageControl 轮播图点","archived":false,"fork":false,"pushed_at":"2021-09-02T09:38:54.000Z","size":108,"stargazers_count":151,"open_issues_count":1,"forks_count":36,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-31T15:35:14.683Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/hackxhj.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":"2017-07-26T08:13:58.000Z","updated_at":"2024-10-18T12:02:02.000Z","dependencies_parsed_at":"2022-08-26T09:10:16.466Z","dependency_job_id":null,"html_url":"https://github.com/hackxhj/EllipsePageControl","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackxhj%2FEllipsePageControl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackxhj%2FEllipsePageControl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackxhj%2FEllipsePageControl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hackxhj%2FEllipsePageControl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hackxhj","download_url":"https://codeload.github.com/hackxhj/EllipsePageControl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225868593,"owners_count":17537081,"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-22T08:29:38.854Z","updated_at":"2024-11-22T08:30:07.847Z","avatar_url":"https://github.com/hackxhj.png","language":"Objective-C","funding_links":[],"categories":["OOM-Leaks-Crash"],"sub_categories":["PageControl"],"readme":"## 椭圆 长方形的 PageControl 自定义\n\n```objc\n@property(nonatomic) NSInteger numberOfPages;          //  多少分页点\n\n@property(nonatomic) NSInteger currentPage;            //  当前点位置\n\n@property(nonatomic) NSInteger controlSize;            //  点大小\n\n@property(nonatomic) NSInteger controlSpacing;         //  点的间距 \n\n@property(nonatomic,strong) UIColor *otherColor;       //  其他点颜色\n\n@property(nonatomic,strong) UIColor *currentColor;     //  当前点颜色\n\n@property(nonatomic,strong) UIImage *currentBkImg;     //  当前点背景颜色\n```\n\n使用例子：\n### 支持pod导入\n```ruby\npod 'EllipsePageControl','~\u003e 0.0.4'\n```\n\n\n###  头文件引入\n\n#import \"EllipsePageControl.h\"\n\n### 定义\n```objc\n@property(nonatomic,strong) EllipsePageControl *myPageControl1;\n```\n### 使用\n\n```objc\n_myPageControl1 = [[EllipsePageControl alloc] init];\n\n_myPageControl1.frame=CGRectMake(0, 80,[UIScreen mainScreen].bounds.size.width, 30);\n\n_myPageControl1.numberOfPages = 6;\n\n_myPageControl1.delegate=self;\n\n[self.view addSubview:_myPageControl1];\n\n\n\n\n### #pragma  mark EllipsePageControlDelegate。监听用户点击\n\n-(void)ellipsePageControlClick:(EllipsePageControl *)pageControl index:(NSInteger)clickIndex{\n\n}\n```\n###  看效果图  demo 详细使用\n\n \u003cimg src=\"https://raw.githubusercontent.com/hackxhj/EllipsePageControl/master/123.png\" alt=\"show\" title=\"show\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackxhj%2FEllipsePageControl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhackxhj%2FEllipsePageControl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhackxhj%2FEllipsePageControl/lists"}