Get Updates By E-mail 

rating stars

Custom UIView Tutorial – 5-Star Ratings View

  •  
  •  
  •  
  •  
  •  

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.

Building The Custom UIView

Ray Wenderlich,  the creator of the Space Game Starter Kit and co-author of the Learning Cocos2D book, 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 using the buttons below!


  •  
  •  
  •  
  •  
  •