12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // CoachCell.m
- // jiaPei
- //
- // Created by apple on 16/1/20.
- // Copyright © 2016年 JCZ. All rights reserved.
- //
- #import "CoachCell.h"
- @implementation CoachCell
- - (void)awakeFromNib
- {
- [super awakeFromNib];
- NSMutableArray *barArray = [NSMutableArray array];
- for (int i = 0; i < 4; i ++)
- {
- RatingBar *starBar = [[RatingBar alloc]initWithFrame:CGRectMake(kSize.width - 200, _starFrame.y + i*30 - 5, 180, 30) Flag:NO];
- starBar.enable = NO;
- starBar.starNumber = 0;
- [self addSubview:starBar];
- [barArray addObject:starBar];
- }
-
- _bar1 = barArray[0];
- _bar2 = barArray[1];
- _bar3 = barArray[2];
- _bar4 = barArray[3];
-
- }
- - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
- [super setSelected:selected animated:animated];
- // Configure the view for the selected state
- }
- @end
|