文章来源:淘论文网   发布者: 毕业设计   浏览量: 32



还可以点击去查询以下关键词:
[几行]    [代码]    [星星]    [评分]    [多个]    [共同]    [使用]    [几行代码实现星星评分,可多个共同使用]   

2016-12-15 09:57 上传

点击文件名下载附件
星星评分

根据网上一个朋友的代码改了一下,可以实现多个 starRetingView 同时存在,论文,有什么不足之处大家帮忙指出来,
不要在意乱七八糟的坐标。。。

// 是否需要半星 @property (assign, nonatomic) BOOL isNeedHalf; // 评分图片的宽 @property (assign, nonatomic) CGFloat imageWidth; // 评分图片的高 @property (assign, nonatomic) CGFloat imageHeight; // 图片数量 @property (assign, nonatomic) NSInteger imageCount; /** * StarRating condition * * @return temp */ tempStar = [[ZSStarRatingView alloc] init]; // tempStar.backgroundColor = [UIColor cyanColor]; tempStar.tag = 1011; tempStar.imageWidth = 24.0; tempStar.imageHeight = 22.0; tempStar.imageCount = 5; tempStar.isNeedHalf = YES; tempStar.delegate = self; tempStar.frame = CGRectMake(15 +60 +5, 15 +2, tempStar.imageWidth * 5, tempStar.imageHeight); [midView addSubview:tempStar]; secondScore = [[UILabel alloc] initWithFrame:CGRectMake(tempStar.frame.origin.x +tempStar.frame.size.width +15, tempStar.frame.origin.y, 80, tempStar.imageHeight)]; secondScore.text = @'请评分'; [midView addSubview:secondScore];

开题报告

这里还有:


还可以点击去查询:
[几行]    [代码]    [星星]    [评分]    [多个]    [共同]    [使用]    [几行代码实现星星评分,可多个共同使用]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/8236.docx
  • 上一篇:电子表展示
  • 下一篇:模仿星巴克定制星星动画