i have such a string "17:22:19" i need to convert it to time and countdown. I try to format it with NSDateFormatter but the result is always nil. Here how my code looks.
how can i convert it to time and countdown by timer ?
Code:
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
formatter.dateFormat = @"HH:mm:ss";
NSDate *theTime = [formatter dateFromString:@"17:22:19"];
how can i convert it to time and countdown by timer ?