如果我有一个来自 key 的字符串并且该字符串是一个计时器 (12:00) 如何将 1 分钟添加到计时器,因此标签将显示 12:01:
NSString string = [subDict objectForKey:@"1"];
NSScanner timeScanner=[NSScanner scannerWithString:string];
int hours,minutes;
[timeScanner scanInt:&hours];
[timeScanner scanString:@":" intoString:nil];
[timeScanner scanInt:&minutes];
谢谢