UIDatePickerView作为具有更多值的Timer [英] UIDatePickerView as Timer with more values

查看:121
本文介绍了UIDatePickerView作为具有更多值的Timer的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

UIDatePicker的模式设置为Timer,只有0到23小时的值。我想要有更多的时间(比如,长达48小时)。它还在所选行的数字旁边显示一个漂亮的浮动文本。

The UIDatePicker with it's mode set on "Timer", only has values from 0 to 23 hours. I'd like to have more hours (like, up to 48 hours). It also shows a nice "floating" text next to the number on the selected row.

我实际上可以通过添加标签来模仿浮动小时效果在UIPickerView的顶部,但我会丢失第二列的分钟间隔,我真的希望在pickerView上有30分钟的间隔。但我真的需要更多的小时栏值。任何解决方案?

I can actually "imitate" the "floating" hours effect, by adding a label on top of the UIPickerView, but I'd lose the second column with the minutes interval, and I'd really like to have 30 minute interval on a pickerView. But I really need more values on the hours column. Any solutions?

推荐答案

喜欢@Jason Coco说。使用UIPickerView并按照您需要的方式进行设置。除非您使用选择器将计时器长度发送到服务器并发送推送通知,否则您可能需要重新考虑您的应用程序。除非明天在iPhone OS 4推出活动中公布一个好的多任务解决方案。

Like @Jason Coco said. Use a UIPickerView and set it up the way you need. Unless you are using the picker to send the timer length to a server and deliver a push notification, it seems like you may need to rethink your app. Unless a good multitasking solution is unveiled tomorrow at the iPhone OS 4 unveiling event.

这篇关于UIDatePickerView作为具有更多值的Timer的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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