Date Picker View

Is there any chance we could get a nice, Corona-based date picker widget?

How would this be different that the widget.newPickerWheel() API?

Rob

The date picker would present localized controls to allow the user to select dates and times, in the best way as determined by their device’s current locale setting.  It could use the widget.newPickerWheel for its underlying interface, of course.

Something like UIDatePicker on iOS…

Actually we have a solution for this.  Widgets are open source.  If you need to customize or extend the widgets, you are more than welcome to download them from our github site:  https://github.com/coronalabs/framework-widget

This is all done in Lua.  You can extend the pickerWheel to do what you want.

Rob

Thanks for the reply, Rob.  I am considering extending the widget, but I’m a bit wary because programming a good, localized date picker is actually much more involved and time consuming than I’d like.  I know, because I attempted to write my own DatePickerView on iOS last year.  I needed to replace Apple’s UIDatePicker, because the Apple widget had almost no appearance customizability, and the default look did not fit well into my app.  Anyway, writing that DatePickerView correctly turned out to be a HUGE can of worms.  I actually never got it to localize perfectly, in the end.

Thanks again for the replies.

How would this be different that the widget.newPickerWheel() API?

Rob

The date picker would present localized controls to allow the user to select dates and times, in the best way as determined by their device’s current locale setting.  It could use the widget.newPickerWheel for its underlying interface, of course.

Something like UIDatePicker on iOS…

Actually we have a solution for this.  Widgets are open source.  If you need to customize or extend the widgets, you are more than welcome to download them from our github site:  https://github.com/coronalabs/framework-widget

This is all done in Lua.  You can extend the pickerWheel to do what you want.

Rob

Thanks for the reply, Rob.  I am considering extending the widget, but I’m a bit wary because programming a good, localized date picker is actually much more involved and time consuming than I’d like.  I know, because I attempted to write my own DatePickerView on iOS last year.  I needed to replace Apple’s UIDatePicker, because the Apple widget had almost no appearance customizability, and the default look did not fit well into my app.  Anyway, writing that DatePickerView correctly turned out to be a HUGE can of worms.  I actually never got it to localize perfectly, in the end.

Thanks again for the replies.