[英]countdown timer implementation in UILabel?
I am Implementing a countdown timer in my app. 我正在应用中实现倒数计时器。 In the functionality, I need to display the remaining time before Jan 1st 2011. In months, days, hours and minutes format. 在功能中,我需要显示2011年1月1日之前的剩余时间。以月,日,小时和分钟的格式显示。 Can any one please help. 任何人都可以帮忙。 Thanks in advance. 提前致谢。
use an NSTimer
which update you're label everytime it's fired 使用NSTimer
,每次触发时都会更新您的标签
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/Reference/NSTimer.html http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSTimer_Class/Reference/NSTimer.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.