// // CommentZzCell.m // jiaPei // // Created by EchoShacolee on 2017/2/16. // Copyright © 2017年 JCZ. All rights reserved. // #import "CommentZzCell.h" #import "RatingBar.h" @implementation CommentZzCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code CGSize size = _ratingBar.frame.size; RatingBar * starBar = [[RatingBar alloc]initWithFrame:CGRectMake(0, 0, size.width, size.height) Flag:YES]; starBar.autoresizesSubviews = YES; starBar.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin; starBar.starNumber = 2; starBar.enable = NO; [_ratingBar addSubview:starBar]; } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } @end