This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
self.timeline = [NSMutableArray new]; | |
for (NSUInteger i = 0; i < self.keyFrames.count - 1; i++) { | |
IFTTTAnimationKeyFrame *keyFrame = [self.keyFrames objectAtIndex:i]; | |
IFTTTAnimationKeyFrame *nextKeyFrame = [self.keyFrames objectAtIndex:i+1]; | |
NSInteger j; | |
for (j = keyFrame.time; j < nextKeyFrame.time; j++) { | |
[self.timeline addObject:[self frameForTime:j startKeyFrame:keyFrame endKeyFrame:nextKeyFrame]]; | |
} | |
if (i + 1 == self.keyFrames.count - 1) { |