How to add star rating to UITableView cell?
Posted
by RaYell
on Stack Overflow
See other posts from Stack Overflow
or by RaYell
Published on 2010-03-23T15:08:50Z
Indexed on
2010/03/23
15:13 UTC
Read the original article
Hit count: 372
I need to display a bunch of UITableViewCell
in my iPhone application. Sample look below. I know how I can enable accessory view and image to UITableView cell but the problem is that I need to add a star rating as visible on the screen. There's no fancy logic behind it, it will just be few images that will be either enabled or disabled.
I though that I could create a custom UITableViewCell
in NIB but how would I use it in cellForRowAtIndexPath
method. If it was just one custom cell I'd just provide an outlet for it and hook it with a property and use it there. But since it would be used multiple times I think I'll need to clone it or copy somehow.
What is the simpliest way of adding such stuff to UITableViewCell?
© Stack Overflow or respective owner