CoachCell.m 874 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // CoachCell.m
  3. // jiaPei
  4. //
  5. // Created by apple on 16/1/20.
  6. // Copyright © 2016年 JCZ. All rights reserved.
  7. //
  8. #import "CoachCell.h"
  9. @implementation CoachCell
  10. - (void)awakeFromNib
  11. {
  12. [super awakeFromNib];
  13. NSMutableArray *barArray = [NSMutableArray array];
  14. for (int i = 0; i < 4; i ++)
  15. {
  16. RatingBar *starBar = [[RatingBar alloc]initWithFrame:CGRectMake(kSize.width - 200, _starFrame.y + i*30 - 5, 180, 30) Flag:NO];
  17. starBar.enable = NO;
  18. starBar.starNumber = 0;
  19. [self addSubview:starBar];
  20. [barArray addObject:starBar];
  21. }
  22. _bar1 = barArray[0];
  23. _bar2 = barArray[1];
  24. _bar3 = barArray[2];
  25. _bar4 = barArray[3];
  26. }
  27. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  28. [super setSelected:selected animated:animated];
  29. // Configure the view for the selected state
  30. }
  31. @end