美文网首页
一个简单的星级评价的控件

一个简单的星级评价的控件

作者: 行业碧油鸡 | 来源:发表于2016-07-15 08:59 被阅读86次

FMLStarView

https://github.com/FelixMLians/FMLStarView

🔥 FMLStarView a simple view of star review 一个简单的星级评价的控件

review.png

Introduction

This is a simple view of star review.

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

Installation

Non-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:

#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):
#pragma mark - FMLStarViewDelegate

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


Support

License

MIT License

相关文章

  • 一个简单的星级评价的控件

    FMLStarView https://github.com/FelixMLians/FMLStarView ? ...

  • iOS 评价星级 Star Slider控件

    ``` 用户可以用手指划过控件上面的若干图像,以此来对电影、软件等项目做出评分。除了简单的滑动,还添加了动画效果。...

  • 星星评分控件TQStarRatingView揭秘!(一)

    今天为大家带来一个iOS星级评分控件的实现,欢迎拍砖。 在github上搜索iOS星级评分控件,可以看到TQSta...

  • 【iOS】实现星级评分

    许多App都会有评价功能,这个时候或许会需要实现星级评分,下面我们来简单的实现一个星级评分功能。 具体实现 导入资...

  • 星级评分

    一、背景 许多App都会有评价功能,这个时候或许会需要实现星级评分,下面我们来简单的实现一个星级评分功能。 二、简...

  • Flutter —— 自定义星级评价控件

    效果: 使用: 必传参数rating:分值,其他为可选参数 可以自行传入UI样式 封装:

  • 星级评价

    用于星级评价,可以设置高亮和低亮颜色;可以自由选择读写;可以设置整星/半星/按百分比显示;地址:https://g...

  • 星级评论控件

    .m文件 #import "Start.h" @implementation Start -(void)setPe...

  • 星级评价插件

    星级评价插件 gem 'jquery-raty-rails', github: 'bmc/jquery-raty-...

  • iOS - 评价星级

    1.通过xib布局,添加五个按钮,并设置tag值: 2.关联属性,将五个按钮放入同个数组中: 3.按钮添加点击事件:

网友评论

      本文标题:一个简单的星级评价的控件

      本文链接:https://www.haomeiwen.com/subject/vooejttx.html