使用简单CGAffineTransformMakeScale
的脉冲标签,尝试在第二个块上应用缓和选项、延迟等时出现错误?没有这个,我会得到生涩的动画,因为我在增加时得到缓解,而在恢复到原始大小时没有
[UIView animateWithDuration:1.0f delay:0 options: UIViewAnimationCurveEaseInOut|UIViewAnimationOptionAllowUserInteraction animations: ^{
[UIView setAnimationRepeatCount:10];
self.transform = CGAffineTransformMakeScale(1.1,1.1);
} completion:^(BOOL finished) {
[UIView animateWithDuration:1.0 animations:^{ // <<< "No known method for selector" error here if I add options
self.transform = CGAffineTransformMakeScale(1.0,1.0);
}];
}];