UIView animateWithDuration: delay: options: animations: completion:

来源:互联网 发布:淘宝网下载安装免费 编辑:程序博客网 时间:2024/04/29 12:59
//UIImageRenderingModeAlwaysTemplate Always draw the image as a template image, ignoring its color informationUIImage *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];                     }];
0 0
原创粉丝点击