CommentZzCell.m 819 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // CommentZzCell.m
  3. // jiaPei
  4. //
  5. // Created by EchoShacolee on 2017/2/16.
  6. // Copyright © 2017年 JCZ. All rights reserved.
  7. //
  8. #import "CommentZzCell.h"
  9. #import "RatingBar.h"
  10. @implementation CommentZzCell
  11. - (void)awakeFromNib {
  12. [super awakeFromNib];
  13. // Initialization code
  14. CGSize size = _ratingBar.frame.size;
  15. RatingBar * starBar = [[RatingBar alloc]initWithFrame:CGRectMake(0, 0, size.width, size.height) Flag:YES];
  16. starBar.autoresizesSubviews = YES;
  17. starBar.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin;
  18. starBar.starNumber = 2;
  19. starBar.enable = NO;
  20. [_ratingBar addSubview:starBar];
  21. }
  22. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  23. [super setSelected:selected animated:animated];
  24. // Configure the view for the selected state
  25. }
  26. @end