//UIImageRenderingModeAlwaysTemplate Always draw the image as a template image, ignoring its color information
UIImage *syncImage = [self.syncImageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
self.syncImageView.image = syncImage;
[UIView animateWithDuration:3.0f
delay:0.0f
options:(UIViewAnimationOptionRepeat | UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionAutoreverse | UIViewAnimationOptionBeginFromCurrentState)
animations:^{
self.syncImageView.tintColor = [UIColor orangeColor];
} completion:^(BOOL finished){
self.syncImageView.tintColor = [UIColor lightGrayColor];
}];
UIView animateWithDuration: delay: options: animations: completion:
最新推荐文章于 2020-05-11 10:03:33 发布