您的位置:首页 > 产品设计 > UI/UE

UIView animateWithDuration: delay: options: animations: completion:

2016-01-13 16:48 507 查看
//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];
}];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: