UIDatePickerView as Timer with more values

流过昼夜 提交于 2019-12-12 01:35:04

问题


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.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/2594432/uidatepickerview-as-timer-with-more-values

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!