{"id":24896745,"url":"https://github.com/tinyq/tqstarratingview","last_synced_at":"2025-08-09T04:05:10.195Z","repository":{"id":10304353,"uuid":"12427589","full_name":"TinyQ/TQStarRatingView","owner":"TinyQ","description":"iOS 星星评分视图控件，点击和滑动评分。","archived":false,"fork":false,"pushed_at":"2017-12-30T10:39:08.000Z","size":124,"stargazers_count":215,"open_issues_count":2,"forks_count":46,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T14:16:38.859Z","etag":null,"topics":["objective-c","rating-stars"],"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/TinyQ.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":"2013-08-28T07:37:14.000Z","updated_at":"2024-06-13T09:48:16.000Z","dependencies_parsed_at":"2022-08-31T08:22:30.794Z","dependency_job_id":null,"html_url":"https://github.com/TinyQ/TQStarRatingView","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyQ%2FTQStarRatingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyQ%2FTQStarRatingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyQ%2FTQStarRatingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TinyQ%2FTQStarRatingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TinyQ","download_url":"https://codeload.github.com/TinyQ/TQStarRatingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244047646,"owners_count":20389206,"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":["objective-c","rating-stars"],"created_at":"2025-02-01T20:15:05.770Z","updated_at":"2025-03-17T14:16:53.816Z","avatar_url":"https://github.com/TinyQ.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"TQStarRatingView\n================\n\n## 星星评分控件\n\niOS 星星评分视图控件，点击和滑动评分。\n\n#### 控件效果\n\n![Image text](READMEIMAGE/TQStarRatingView.gif)\n\n#### 初始化\n\n```objective-c\nTQStarRatingView *starRatingView = [[TQStarRatingView alloc] initWithFrame:CGRectMake(30, 200, 250, 50)\n                                                                  numberOfStar:5];\nstarRatingView.delegate = self;\n[self.view addSubview:starRatingView];\n```\n    \n#### 委托回调处理分数变更\n\n```objective-c\n\n-(void)starRatingView:(TQStarRatingView *)view score:(float)score{\n    self.scoreLabel.text = [NSString stringWithFormat:@\"%0.2f\",score * 10 ];\n}\n\n```\n    \n#### 用代码设置分数 参数需要在0-1之间。\n\n```objective-c\n\n[self.starRatingView setScore:0.5f withAnimation:YES];\n\n``` \n    \n```objective-c    \n\n[self.starRatingView setScore:0.5f withAnimation:YES completion:^(BOOL finished){\n    NSLog(@\"%@\",@\"starOver\");\n}];\n\n```  \n  \n####  About TinyQ\n\n \n \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyq%2Ftqstarratingview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinyq%2Ftqstarratingview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinyq%2Ftqstarratingview/lists"}