IOS 星星评分视图控件,点击和滑动评分。
TQStarRatingView *starRatingView = [[TQStarRatingView alloc] initWithFrame:CGRectMake(30, 200, 250, 50)
numberOfStar:5];
starRatingView.delegate = self;
[self.view addSubview:starRatingView];
-(void)starRatingView:(TQStarRatingView *)view score:(float)score
{
self.scoreLabel.text = [NSString stringWithFormat:@"%0.2f",score * 10 ];
}
[self.starRatingView setScore:0.5f withAnimation:YES];
[self.starRatingView setScore:0.5f withAnimation:YES completion:^(BOOL finished)
{
NSLog(@"%@",@"starOver");
}];
email : [email protected]
blogs : http://tinyq.me