Easily Create A Custom UIView For 5-Star Ratings

There are many iPad and iPhone apps where custom ratings could be useful, such as news apps, and picture rating apps.  The problem with programming a custom UIView is that it is a pretty laborious process, and it’s easy to get something wrong along the way.

If you decide to go with the UIView approach, some of the tougher things are having the ratings follow along with your finger, and displaying the correct number of stars.  You may have noticed when browsing the web that some of these don’t work at all on iOS devices.

Ray Wenderlich has created an excellent tutorial on How To Make a Custom 5 Star Rating UIView that goes through the process of creating a custom UIView.  It is a bit laborious for something so simple, but it definitely works, and works well.

Ray’s guide is also very useful for just learning how to customize UIView’s for other purposes :)

A custom 5-star rating UIView is also included in the handy TouchCustoms library.

Thanks for reading, please share this!

©2010 iPhone iOS 4 iTV iPad SDK Development Tutorials, Programming Tips, News. All Rights Reserved.

.

Share and Enjoy:

RSS
Twitter
Facebook
DZone
HackerNews
del.icio.us
FriendFeed

Leave a Reply

Your email address will not be published. Required fields are marked *