欢迎光临
我们一直在努力

滑动评分star

建站超值云服务器,限时71元/月

滑动评分star

项目介绍:

JWStarView

一款支持整星半星评论的demo

使用说明

    JWStarView*star=[[JWStarView alloc]initWithFrame:CGRectMake(20, 60, 200, 30)];
    star.rateStyle=HalfStar;
    star.delegate=self;
    [self.view addSubview:star];
    
    //只做显示作用
    JWStarView*stars=[[JWStarView alloc]initWithFrame:CGRectMake(20,100, 200, 30)];
    stars.rateStyle=HalfStar;
    stars.delegate=self;
    stars.isIndicator=YES;
    stars.currentScore=3.5;
    [self.view addSubview:stars];

    JWStarView*star1=[[JWStarView alloc]initWithFrame:CGRectMake(20, 140, 200, 30) finish:^(CGFloat currentScore) {
        NSLog(@"current-----%f",currentScore);
    }];
    [self.view addSubview:star1];
    
    JWStarView*star2=[[JWStarView alloc]initWithFrame:CGRectMake(20, 180, 200, 30) numberOfStars:5 rateStyle:HalfStar finish:^(CGFloat currentScore) {
        NSLog(@"star2----%f",currentScore);
    }];
    [self.view addSubview:star2];
    JWStarView *star3=[[JWStarView alloc]initWithFrame:CGRectMake(20, 220, 200, 30) numberOfStars:5 rateStyle:WholeStar delegate:self];
    [self.view addSubview:star3];
赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 滑动评分star
分享到: 更多 (0)