Skip to content

glenyi/TPFloatRatingView

Repository files navigation

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.

About

A simple rating view with whole, half or floating point values.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published