欢迎光临
我们一直在努力

FMLStarView 简单的星级评价的控件

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

FMLStarView 简单的星级评价的控件

项目介绍:

FMLStarView 简单的星级评价的控件
https://github.com/FelixMLians/FMLStarView




Introduction

This is a simple view of star review.

If you feel good, please give me a star, thank you very much! ⭐️

InstallationNon-CocoaPods Installation

Just drag the FMLStarView folder into your project.And change the star images as you like;


Usage

  • Use by including the following import:

[Objective-C] 查看源文件 复制代码

#import "FMLStarView.h"


_starView = [[FMLStarView alloc] initWithFrame:CGRectMake(0, 0, 150, 25)
                                         numberOfStars:numberOfStars
                                           isTouchable:YES
                                                 index:index];
        _starView.currentScore = currentScore;
        _starView.totalScore = totalScore;
        _starView.isFullStarLimited = isFullStarLimited;
        _starView.delegate = controller;
        [self addSubview:_starView];
  • Delegate (@optional):

[Objective-C] 查看源文件 复制代码

#pragma mark - FMLStarViewDelegate

- (void)fml_didClickStarViewByScore:(CGFloat)score atIndex:(NSInteger)index {
    NSLog(@"score: %f  index:%zd", score, index);
}

DEMO 直接下载:

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » FMLStarView 简单的星级评价的控件
分享到: 更多 (0)