def factorial(n)
(1 .. n).inject{|a, b| a*b}
end
def factorial(n)
n == 1 ? 1 : n * factorial(n-1)
end
Я недавно начал изучать iPhone SDK и, скорее всего, не могу дать вам ответ ... Но не нужно заменять код в блоки if (nil == cell)
с
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue1
reuseIdentifier:@"workoutTimerCell"] autorelease];