评级为iphone的明星 [英] Rating stars for the iphone
问题描述
我一直在寻找一个五星评级控制一段时间,并没有找到一个可靠的解决方案。
这个问题:
I have been looking for a 5-Star rating control for a while now and have not found a solid solution. This question:
提供一对夫妇链接到不再可用的项目,我无法追踪它们。
Provided a couple of links to projects which are no longer available, and i have not been able to track them down.
编辑:我显然不善于追踪项目,但我认为我的部分问题仍然存在。以下是 http:// code的更新链接.google.com / p / s7ratingview / downloads / detail?name = s7ratingview-basic-release.zip
I am apparently bad at tracking down projects, but I think part of my question still stands. Here is the updated link http://code.google.com/p/s7ratingview/downloads/detail?name=s7ratingview-basic-release.zip
所以这个问题是2部分 - 有没有那里有一个可靠的预制解决方案,你可以指导我吗?
So this questions is 2 part - Is there a solid premade solution out there, and could you direct me to it?
是否更好/相当容易(是的,我意识到这两个方面存在冲突)我的解决方案?你能给我一些提示/资源吗?我理解子类化UIView和跟踪触摸事件的基本思想,以将另一个图像的顶部图像扩展为看起来像星星,但更多的方向会有所帮助。我已经在iphone上开发了一个星期不到一点,仍然需要一点手持。
Is it better / fairly easy to (yes, i realize these two facets are in conflict) grow my own solution? Could you give me some tips/resources to do so. I understand the basic idea of subclassing UIView and tracking touch events to expand an image ontop of another image to look like stars, but a little more direction would be helpful. I have been developing on the iphone for a little under a week and still need a bit of hand-holding.
推荐答案
试试< a href =http://www.raywenderlich.com/1768/how-to-make-a-custom-uiview-a-5-star-rating-view =noreferrer> Ray Wenderlich的定制UIView评级为5星级。
Try Ray Wenderlich's custom UIView with a 5-star rating.
您也可以尝试使用< a href =http://developer.apple.com/library/ios/#documentation/uikit/reference/UISlider_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40006798 =noreferrer> UISlider 并提供最小/最大曲目图像。
You can also try using UISlider and supplying a minimum/maximum track images.
这篇关于评级为iphone的明星的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!