How to add star rating to UITableView cell?

后端 未结 4 1565
渐次进展
渐次进展 2021-01-16 03:08

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

4条回答
  •  情歌与酒
    2021-01-16 03:41

    I think you may find everything you need here : http://github.com/eisernWolf/TouchCustoms

    Either have a look at the code to have an idea of the code you need to use or just implement directly their source code into your project (do not forget to read carefully the license ;))

    But in my opinion, it should be fairly easy to make your own custom rating system :

    1. Make a star icon - one empty, one plain
    2. Create UIButtons with relevant icons
    3. Make sure to implement relevant touch events

    Okay, that's a summary :D but it shouldn't take too much time to build ;)

提交回复
热议问题