A simple rating view with whole, half or floating point values.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
TPFloatRatingViewDemo
.gitignore
LICENSE
README.md
TPFloatRatingView.h
TPFloatRatingView.m
TPFloatRatingViewDemo.gif

README.md

TPFloatRatingView

A simple rating view with whole, half or floating point values. I couldn't find anything that easily set floating point ratings, so I made this control based on the Ray Wenderlich tutorial found here. Some of the best iOS tutorials that I've come across.

TPFloatRatingView Demo

Usage

Initialize from a nib/xib or programmatically. Set the empty and full image, then you're pretty much good to go! Check out the demo app to see how it can be used.

How it works

The concept is a little different from the source tutorial. The float rating view lays the full image views on top of the empty image views then sets the CALayer mask property to hide the full images. The full image view mask frame is calculated on the fly to make everything work.