//プロパティ @interface PMAnimationLabel() @property (nonatomic, assign) float startValue,endValue,rate,totaltime; @property (nonatomic, assign) CFTimeInterval startTime; @end @implementation PMAnimationLabel #pragma mark -- Class Method -- -(void)animationFrom:(float)fromValue to:(float)toValue withDuration:(NSTimeInterval)duration{ self.startValue = fromValue; //アニメーション開始時の値 self.endValue = toValue;