All Projects → jinht → RatingBar

jinht / RatingBar

Licence: MIT License
评分条/星级条(类似于淘宝/京东/1号店/亚马逊等商城类的评分条)

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to RatingBar

average-rating
Calculate average score and rating based on Wilson Score Equation
Stars: ✭ 28 (-44%)
Mutual labels:  rating-stars
ScoreboardStats
Bukkit plugin for customizing the sidebar of the scoreboard feature from minecraft
Stars: ✭ 29 (-42%)
Mutual labels:  scoreboard
world-cup-scoreboards
⚽🏆 A Node.js CLI to show FIFA World Cup 2018 results in real time.
Stars: ✭ 16 (-68%)
Mutual labels:  scoreboard
ShopCarAnimation
购物车类的抛物线动画(支持上抛或者下抛) && 阻尼动画(弹球动画)
Stars: ✭ 55 (+10%)
Mutual labels:  ios-sdk
esx scoreboard
esx - scoreboard | A user friendly scoreboard for your server ;)
Stars: ✭ 28 (-44%)
Mutual labels:  scoreboard
DragRating
Easy to use Drag Rating with customisation with custom assets
Stars: ✭ 21 (-58%)
Mutual labels:  rating-stars
connect-sdk-client-ios
Ingenico Connect iOS Objective-C Client SDK
Stars: ✭ 17 (-66%)
Mutual labels:  ios-sdk
TournamentBrackets
Android project written in Java to display Tournaments brackets with animation
Stars: ✭ 39 (-22%)
Mutual labels:  scoreboard
API
API for SQLMatches.
Stars: ✭ 48 (-4%)
Mutual labels:  scoreboard
Glaedr
An extensive, modular functional scoreboard library for the Bukkit/Spigot API.
Stars: ✭ 23 (-54%)
Mutual labels:  scoreboard
powerauth-mobile-sdk
PowerAuth Mobile SDK for adds capability for authentication and transaction signing into the mobile apps (ios, watchos, android).
Stars: ✭ 27 (-46%)
Mutual labels:  ios-sdk
ans-ios-sdk
Analysys iOS SDK
Stars: ✭ 29 (-42%)
Mutual labels:  ios-sdk
AndroidSmartRatingBar
Android Smart RatingBar, auto resize star width by layout size, with SIMPLE API and HIGH PERFORMANCE!!!😆
Stars: ✭ 30 (-40%)
Mutual labels:  rating-bar
iOS-10-Sampler
Code examples for the new features of iOS 10.
Stars: ✭ 72 (+44%)
Mutual labels:  ios-sdk
AppFeedback-ios
📸 You can post feedback messages and screenshots to Slack from your iOS app! 🎥
Stars: ✭ 39 (-22%)
Mutual labels:  ios-sdk
tuyasmart home ios sdk
Tuya Smart iOS Home SDK
Stars: ✭ 48 (-4%)
Mutual labels:  ios-sdk
dewdle
A remote video-feed drawing tool (telestrator) for streaming and broadcast environments.
Stars: ✭ 29 (-42%)
Mutual labels:  scoreboard
KSYAirStreamer iOS
金山云 iOS Airplay 录屏直播SDK
Stars: ✭ 44 (-12%)
Mutual labels:  ios-sdk
scoreboard
Online judge scoreboard parser
Stars: ✭ 23 (-54%)
Mutual labels:  scoreboard
GoogleSignIn-iOS
Enables iOS and macOS apps to sign in with Google.
Stars: ✭ 198 (+296%)
Mutual labels:  ios-sdk

RatingBar

评分条(类似于淘宝/京东/1号店/亚马逊等商城类的评分条,支持0.5分哦)

先上图,看一下是否符合你的场景吧!

Function Description

  1. 点击评分
  2. 滑动评分
  3. 个性化设置

How to use

platform:ios, '8.0'

target '*****' do

pod 'JhtRatingBar'
        
end

2. 点击评分

/** 常规初始化方法 */
JhtRatingBar *bar = [[JhtRatingBar alloc] initWithFrame:CGRectMake(([UIScreen mainScreen].bounds.size.width - 280) / 2, 150, 280, 35)];

3. 滑动评分:只要这两个属性不关闭,默认是可以滑动评分的

/** 是否允许可触摸(默认:允许) */
@property (nonatomic, assign) BOOL isEnableTouch;
/** 是否允许滑动选择(默认:允许)(在isEnableTouch = YES的前提下才有意义) */
@property (nonatomic, assign) BOOL scrollSelectEnable;

4. 个性化设置:可以通过设置以下属性做相关设置(半分 && 背景颜色 && 获取最终评分)

/** 是否需要半分(默认不需要) */
@property (nonatomic, assign) BOOL isNeedHalf;
/** 底部视图的颜色(默认:白色) */
@property (nonatomic, strong) UIColor *bgViewColor;

/** 点亮星星发生变化 */
@property (nonatomic, copy) StarChange starChange;
/** 获得的分数 */
@property (nonatomic, assign, readonly) CGFloat scale;
__weak JhtRatingBar *weakBar = bar;
    bar.starChange = ^() {
        NSLog(@"scale = %lf", weakBar.scale);
};

注:1. 假使这样初始化后不做其他属性的传递,评分条相关属性会使用默认值,例:星星总的数量(默认:5)
  2. 假使评分条宽度在初始化设置的时候,不足以放得下所有星星,内部会动态改变其宽度以至于可以放得下所有星星

Remind

  • ARC
  • iOS >= 8.0
  • iPhone \ iPad

Hope

  • If you find bug when used,Hope you can Issues me,Thank you or try to download the latest code of this framework to see the BUG has been fixed or not
  • If you find the function is not enough when used,Hope you can Issues me,I very much to add more useful function to this framework ,Thank you !
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].