基于 iPhone 的 UISlider 的特定 UIControl
我需要在屏幕上显示特定的数据位,它最容易表示为 UISlider 之类的改编版本。
它将代表 0.0 到 10.0 之间的一系列相关(数字)答案。我希望显示的数据是最小值、最大值和平均值。然而,我需要在不透露数字的情况下做到这一点。
目前它是通过一个看起来像这样的控件(在网络浏览器上)完成的...
[---------|=========@=====|--- ]
其中阴影区域显示最小-最大范围,@ 代表滑块滑块并设置为平均值。
在我开始尝试进行编程之前,我想知道您是否能够提供任何指示,告诉我可以从哪里开始?
感谢您提供的任何帮助。
谢谢
奥利弗
I need to show a specific bit of data to the screen and it is most easily represented as an adaptation of something like a UISlider.
It will represent a range of related (numerical) answers between 0.0 and 10.0. The data I wish to show is the minimum, maximum and mean. However, I need to do this without revealing the numbers.
It is currently done (on a web browser) with a control that looks like this...
[---------|=========@=====|---]
Where the shaded area shows the min-max range and the @ represents the slider thumb and is set to the mean.
Before I started trying to wrap my head around programming this I was wondering if you might be able to provide any pointers as to where I can start with this?
Thanks for any help you can offer.
Thanks
Oliver
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不会尝试根据标准滑块进行设置(无论如何也想不出一种干净的方法来做到这一点) - 而且我也不会让它看起来太相似。苹果非常热衷于“捍卫”用户感知其 UI 概念的方式。所以我想他们可能不会批准带有滑块的应用程序,该滑块已被“劫持”为只是一个仪表,而不是一个控件 - 或类似的东西。
也许您会在 wwww 中找到一些可以作为您的工作基础的东西,但如果我是您,我会从头开始这个元素,也许会使用基于网络版本的艺术品和资源。这将是最直接的方法,并且将为您提供您所需要的东西。
I wouldn't try to set this up based on the standard slider (couldn't think of a clean way to do this anyway) - and i wouldn't make it looking too similar, too. Apple is very keen on "defending" the way their UI concept is perceived by users. So i suppose they maybe wouldn't approve an app with a slider that has been "hijacked" to be only a meter, not a control - or something that looks like it, for that matter.
Maybe you'll find something in the wwww where you could base your work on, but if I were you, I'd start this element from scratch, maybe using artwork and ressources from the webbased version. This would be the most straightforward way and will give you exactly what you need..