1

I'm wondering if there is an already existing control that I could give an array of images to and it would display them horizontally?

So in other words, if I wanted to show that something had 3/4 stars I could add 3 full stars and 1 empty star to the array, or if I had a list of 'options' that are represented by graphics (eg open late, BYOB) I could just add those elements to the array.

Nicolas S
  • 5,325
  • 3
  • 29
  • 36
nazbot
  • 1,527
  • 2
  • 15
  • 23

3 Answers3

1

Sounds like you want to use a UISegmentedControl or a custom subclass based on it.

puzzle
  • 6,071
  • 1
  • 25
  • 30
  • I think this is the way to do it, or if need be make my own control that is very similar. Thanks. – nazbot Jun 20 '11 at 15:52
0

I believe no - it's a too custom element. The closest that you can get is the UIImageView and its 2 images that you can swap between.

Teodor Kostov
  • 313
  • 1
  • 11
0

You should really check these out:

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

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

Some googling: http://www.raywenderlich.com/1768/how-to-make-a-custom-uiview-a-5-star-rating-view

Community
  • 1
  • 1
Nicolas S
  • 5,325
  • 3
  • 29
  • 36