Created
December 17, 2015 09:30
-
-
Save rakhimoni/26ea767aa657235a217a to your computer and use it in GitHub Desktop.
Countdown Timer in Ios
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var win1 = Titanium.UI.createWindow({ | |
backgroundColor:'black' | |
}); | |
var duration = 60000 * 5; // 5 minutes | |
var picker = Ti.UI.createPicker({ | |
type:Ti.UI.PICKER_TYPE_COUNT_DOWN_TIMER, | |
countDownDuration:duration | |
}); | |
picker.selectionIndicator = true; | |
win1.add(picker); | |
picker.addEventListener('change',function(e) | |
{ | |
Ti.API.info('countDownDuration = ' + picker.countDownDuration); | |
Ti.API.info('value = ' + picker.value); | |
}); | |
win1.open({modal:false}); | |
win1.open(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment