iOS:自己写的一个星级评价的小Demo

重新整理了下自己星级评价的Demo,可以展示星级评价,可以动态修改星级。

github的地址:https://github.com/hunterCold/HYBStarEvaluationView         

a simple tool of star evaluation 一个简单的星级评价的工具

简单调用:

HYBStarEvaluationView *starView = [[HYBStarEvaluationView alloc]initWithFrame:CGRectMake(10, 80, 125, 30) numberOfStars:5];
starView.scorePercent = 0;
starView.isVariable = YES;
[self.view addSubview:starView];

欢迎各位提出批评意见,也同时欢迎各位提供更多想法

原文地址:https://www.cnblogs.com/heyuanbo/p/5370860.html