摘要:
KVC 一直没仔细看过KVC的用法,想当然的认为可以在NSObject对象中存入任意键值对,结果使用时碰到问题了。 一个简单的位移动画:CAKeyframeAnimation *keyPosi=[CAKeyframeAnimation animationWithKeyPath:@"position"];keyPosi.path=path.CGPath;keyPosi.delegate=self;[label.layer addAnimation:keyPosi forKey:@"x"]; 我想要在动画结束后把UILabel从屏幕上移除,于是加上动画结束后 阅读全文