开发者

Control that would display an array of images - iphone

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.


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


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.


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜