{"id":15050815,"url":"https://github.com/g763007297/gqratingview","last_synced_at":"2025-04-10T02:20:11.207Z","repository":{"id":56912305,"uuid":"60939754","full_name":"g763007297/GQRatingView","owner":"g763007297","description":"五星评分RatingView，支持拖拽点击评分，可自定义五角星样式,支持链式调用。","archived":false,"fork":false,"pushed_at":"2017-12-07T01:18:08.000Z","size":716,"stargazers_count":24,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T02:20:05.384Z","etag":null,"topics":["objective-c","pod","ratingview"],"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/g763007297.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":"2016-06-12T03:19:06.000Z","updated_at":"2023-11-21T02:01:02.000Z","dependencies_parsed_at":"2022-08-21T03:20:08.770Z","dependency_job_id":null,"html_url":"https://github.com/g763007297/GQRatingView","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g763007297%2FGQRatingView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g763007297%2FGQRatingView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g763007297%2FGQRatingView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/g763007297%2FGQRatingView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/g763007297","download_url":"https://codeload.github.com/g763007297/GQRatingView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142991,"owners_count":21054688,"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","pod","ratingview"],"created_at":"2024-09-24T21:29:26.084Z","updated_at":"2025-04-10T02:20:11.190Z","avatar_url":"https://github.com/g763007297.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":" [![License MIT](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://raw.githubusercontent.com/angelcs1990/GQGesVCTransition/master/LICENSE)\u0026nbsp;\n[![](https://img.shields.io/badge/platform-iOS-brightgreen.svg)](http://cocoapods.org/?q=GQGesVCTransition)\u0026nbsp;\n[![support](https://img.shields.io/badge/support-iOS6.0%2B-blue.svg)](https://www.apple.com/nl/ios/)\u0026nbsp;\n\n# GQRatingView\n五星评分RatingView，支持拖拽点击评分，过渡动画平滑，可自定义五角星样式和颜色,支持链式调用。\n\n## Overview\n\n![Demo Overview](https://github.com/g763007297/GQRatingView/blob/master/ScreenShot/demo.gif)\n\n## CocoaPods\n\n1.在 Podfile 中添加 pod 'GQRatingView'。\n\n2.执行 pod install 或 pod update。\n\n3.导入 GQRatingView.h。\n\n## Basic usage\n\n1.下载 GQRatingView 文件夹内的所有.h和.m文件。\n\n2.将 GQRatingView 内的源文件添加(拖放)到你的工程。\n\n3.在需要用到的地方引用头文件 GQRatingView.h。\n\n4.添加代码：\n\n``` objc\n    //链式调用\n    [GQRatingView init]\n    .frameChain(CGPointMake(50, 100),50)\n    .canTouchChain(YES)\n    .needIntValueChain(YES)\n    .scoreNumChain(@5)\n    .scroreBlockChain(^(NSNumber *scoreNumber){\n        NSLog(@\"%@\",scoreNumber);\n    }).superViewChain(self.view);\n\n    //普通用法\n    GQRatingView *fiveStar = [GQRatingView initWithPoint:CGPointMake(50, 100) withSize:50];\n    \n    fiveStar.canTouch = YES;//设置可以触摸\n    \n    fiveStar.needIntValue = NO;//设置不需要整数分数\n    \n    fiveStar.scoreNum = [NSNumber numberWithInt:5];//设置初始化分数\n    \n    fiveStar.scoreBlock = ^(float number){//返回的分数\n        \n        NSLog(@\"%.1f\",number);\n        \n    };\n    \n    [self.view addSubview:fiveStar];\n```\n\n##Support\n\n欢迎指出bug或者需要改善的地方，欢迎提出issues、加Q群交流iOS经验：578841619 ， 我会及时的做出回应，觉得好用的话不妨给个star吧，你的每个star是我持续维护的强大动力。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg763007297%2Fgqratingview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fg763007297%2Fgqratingview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fg763007297%2Fgqratingview/lists"}