Anyone know whether there is a 5-star rating component on iPhone?

前端 未结 8 1003
南方客
南方客 2020-12-05 12:08

In Google groups and some other web sites, there is a 5-star rating component which is pretty neat, such as in this url: http://groups.google.com/group/Google-Picasa-Data-AP

8条回答
  •  情话喂你
    2020-12-05 12:16

    I don't know of any free/available components off the top of my head, but if nobody offers one up and/or you can't find one you like, it should be fairly trivial to roll your own. In the simplest terms, you would only have to:

    1. Create/Find a star icon - one outline (unselected), one filled
    2. Create a UIButton and set the icons for the selected/unselected states
    3. Create a container view that held your x stars and when one was selected, the container could set the selected state on any button to the left of the touched button.

    Shouldn't take long at all to build...

提交回复
热议问题