2016-04-20 10 views
1

私はiv'e画像にアニメーションUIImageViewの色合いのカラーdosent仕事

imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate) 

を適用した後、私はUIImageを割り当てるよUIImageViewを持っています。

私は色合いは、このコードを歌うアニメーション化しようとしている:

UIView.transitionWithView(imageV!, duration: 0.275, options: [.BeginFromCurrentState , .TransitionCrossDissolve], animations: {() -> Void in 
     imageV?.tintColor = globalColor 
     imageV?.setNeedsDisplay() 
     }, completion: nil) 

しかし、それは単に最終的な色にジャンプします。 提案がありますか?ありがとう!それがどのように見えるのObjective-Cの場合

+0

uがこの問題を解決していますか? – puko

+0

@pukoまだ.. –

答えて

0

[UIView animateWithDuration:0.25f 
         delay:0.0f 
        options:UIViewAnimationOptionBeginFromCurrentState 
       animations:^ 
{ 
    imageView.tintColor = color; 
} 
       completion:nil]; 
関連する問題