JBCountdownLabel -


MIT
iOS
Objective-C

软件简介

JBCountdownLabel是UILabel的一个扩展,实现倒数功能。可以设置倒数时间。可以通过委托方法执行倒数结束后的操作。

使用方法:

self.countdownLabel = [[JBCountdownLabel alloc] initWithFrame:CGRectMake(0, 50, 320, 46) format:@"Initiating ignition in %@" time:300 delegate:self];
self.countdownLabel.textColor = [UIColor colorWithRed:0.48 green:0.63 blue:0.07 alpha:1];
[self.view addSubview:self.countdownLabel];