Is there any way to display seconds in a spinner time picker?
var picker = Ti.UI.createPicker({ useSpinner: true, selectionIndicator: true, type: Ti.UI.PICKER_TYPE_TIME });Is creating a custom columns an only one solution?
var hours = Ti.UI.createPickerColumn(); for(var i=0; i<24; i++){ var row = Ti.UI.createPickerRow({ title: i }); hours.addRow(row); } var minutes = Ti.UI.createPickerColumn(); for(var i=0; i<60; i++){ var row = Ti.UI.createPickerRow({ title: i }); minutes.addRow(row); } var seconds = Ti.UI.createPickerColumn(); for(var i=0; i<60; i++){ var row = Ti.UI.createPickerRow({ title: i }); seconds.addRow(row); } var picker = Ti.UI.createPicker({ top: 50, useSpinner: true, selectionIndicator: true, //type: Ti.UI.PICKER_TYPE_TIME, //format24: false columns: [hours, minutes, seconds] });If so - what's the difference comparing to
type: Ti.UI.PICKER_TYPE_TIME? Just implementation or performance and anything else is also different?
1 Answer
Hello Artem,
If you have to display second in picker then you have to make a custom picker....
See this demo which i made for you...
i hope it will help you. Best luck...
Your Answer
Think you can help? Login to answer this question!