Latest | 0.0.4 |
---|---|
Homepage | https://github.com/danwilliams64/DJWStarRatingView |
License | MIT |
Platforms | ios 7.0, requires ARC |
Authors |
A view that represents a given rating using stars. Uses custom drawing to allow their appearance at any size. The view also allows for editing, using either tapping, panning, or both.
Demo
Usage
Create a new instance of DJWStarRatingView, utilising the designated initialiser:
- (instancetype)initWithStarSize:(CGSize)starSize
numberOfStars:(NSInteger)numberOfStars
rating:(float)rating
fillColor:(UIColor *)fillColor
unfilledColor:(UIColor *)unfilledColor
strokeColor:(UIColor *)strokeColor;
rating
value’s decimal part can either be .0
or .5
.
Installation
Simply add DJWStarRatingView
to your Podfile if you’re using Cocoapods. Alternatively, add DJWStarRatingView.h
and DJWStarRatingView.m
to your project. Included in this repository is a demo application, showing the project in action.
License
DJWStarRatingView is licensed under the MIT license.
Latest podspec
{ "name": "DJWStarRatingView", "version": "0.0.4", "summary": "A view that represents a given rating using stars. Uses custom drawing to allow their appearance at any size.", "description": " A view that represents a given rating using stars. Uses custom drawing to allow their appearance at any size.n The view also allows for editing, using either tapping, panning, or both.n Properties that are configurable include star size, fill color, unfilled color, stroke, padding and stroke width.n", "homepage": "https://github.com/danwilliams64/DJWStarRatingView", "screenshots": "https://raw.githubusercontent.com/danwilliams64/DJWStarRatingView/master/Screenshots/DJWStarRatingView.gif", "license": { "type": "MIT", "file": "LICENSE.md" }, "authors": { "Dan Williams": "[email protected]" }, "social_media_url": "http://twitter.com/danielwilliams", "platforms": { "ios": "7.0" }, "source": { "git": "https://github.com/danwilliams64/DJWStarRatingView.git", "tag": "0.0.4" }, "source_files": "DJWStarRatingView", "public_header_files": "DJWStarRatingView/*.h", "requires_arc": true }
Sat, 27 Feb 2016 17:08:03 +0000