为 iphone 评分星级 [英] Rating stars for the iphone

查看:20
本文介绍了为 iphone 评分星级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在寻找 5 星评级控制,但一直没有找到可靠的解决方案.这个问题:

I have been looking for a 5-Star rating control for a while now and have not found a solid solution. This question:

谁知道有没有iPhone 上的 5 星评级组件?

提供了几个不再可用的项目链接,但我无法找到它们.

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

所以这个问题分为两部分 - 有没有可靠的预制解决方案,你能指导我吗?

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.

推荐答案

尝试 Ray Wenderlich 的 自定义 UIView 具有 5 星评级.

Try Ray Wenderlich's custom UIView with a 5-star rating.

您也可以尝试使用 UISlider 并提供最小/最大轨道图像.

You can also try using UISlider and supplying a minimum/maximum track images.

这篇关于为 iphone 评分星级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆