StarRating Bar,星星打分控件
FinalStarRatingBar *bar = [[FinalStarRatingBar alloc] initWithFrame:CGRectMake(0, 40, 320, 40)];
[self.view addSubView:bar];
FinalStarRatingBar *bar = [[FinalStarRatingBar alloc] initWithFrame:CGRectMake(0, 40, 320, 40) starCount:10];
[self.view addSubview:bar];
1.Drag a view to the nib.
2.Set its class to FinalRatingBar.
3.Use tag property to control the number of the stars.
[bar2 setRatingChangedBlock:^(NSUInteger rating) {
NSLog(@"%d",rating);
}];
Set Rating
bar.rating = 3;
Disable Touch
bar.enabled = NO;