动画POP.h

YouXianMing/Animations
CRAnimation/CRAnimation
yixiangboy/IOSAnimationDemo
schneiderandre/popping****
facebook/pop

UITableViewCell( cell 缩放)

- (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated {
[supersetHighlighted:highlightedanimated:animated];
if(self.highlighted) {
POPBasicAnimation*scaleAnimation = [POPBasicAnimationanimationWithPropertyNamed:kPOPViewScaleXY];
scaleAnimation.duration=0.1f;
scaleAnimation.toValue= [NSValuevalueWithCGPoint:CGPointMake(0.95,0.95)];
[self.titleLBpop_addAnimation:scaleAnimationforKey:@"scaleAnimation"];
}else{
POPSpringAnimation*scaleAnimation = [POPSpringAnimationanimationWithPropertyNamed:kPOPViewScaleXY];
scaleAnimation.toValue= [NSValuevalueWithCGPoint:CGPointMake(1,1)];
scaleAnimation.velocity= [NSValuevalueWithCGPoint:CGPointMake(2,2)];
scaleAnimation.springBounciness=20.f;
[self.titleLBpop_addAnimation:scaleAnimationforKey:@"scaleAnimation"];
}
}

你可能感兴趣的:(动画POP.h)