2012-03-27 1 views

答えて

2

UIView.backGroundColorがアニメーション可能であるので、これは動作する可能性

button.backGroundColor = [UIColor blueColor]; 
[UIView beginAnimations:nil context:NULL]; 
[UIView setAnimationDuration:0.5]; 
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; 
button.backGroundColor = [UIColor whiteColor]; 
[UIView commitAnimations]; 
+0

おかげで@amleszk、私もこのソリューションでビットを果たし、大丈夫のようです。私はサブクラスでオーバーライドするメソッドが必要であると思っていました。サブクラスをオーバーライドするには、よりクリーンな方法が必要です。 Atm、私はおそらく上記の解決策に行きます。 :) – Koolala

関連する問題