blommegard/SBTickerView — Issue #4: Issue w/ the Flip Clock when I try to implement it in another App
Author: charlesaroutiounian
Created: 2012-01-01 21:30:42+00:00
State: open

It crashes when I put the Clock
I think that the issue comes from

- (void)numberTick:(id)sender {
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"HHmmss"];
NSString *newClock = [formatter stringFromDate:[NSDate date]];

[_clockTickers enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop) {
if (![[_currentClock substringWithRange:NSMakeRange(idx, 1)] isEqualToString:[newClock substringWithRange:NSMakeRange(idx, 1)]]) {
[obj setBackView:[SBTickView tickViewWithTitle:[newClock substringWithRange:NSMakeRange(idx, 1)] fontSize:45.]];
[obj tick:SBTickerViewTickDirectionDown animated:YES completion:nil];
}
}];

_currentClock = newClock;
}