我想实现一个像无限滚动评级工具这样的轮子,如下图所示。
不,我采取了滚动视图并在滚动视图中设置了橙色图像
- (void)viewWillAppear:(BOOL)animated
{
UIImageView * headerImage = [[UIImageView alloc] init];
headerImage.image = [UIImage imageNamed:@"img_2.png"];
SCrl_Wheel.backgroundColor = [UIColor colorWithPatternImage:headerImage.image];
[SCrl_Wheel setContentSize:CGSizeMake(500,0)];
[SCrl_Wheel setShowsHorizontalScrollIndicator:NO];
Lbl_Rate.text=@"0";
[super viewWillAppear:animated];
}