UIToolbarのtintColorプロパティをアニメーション化して、あるtintColorから別のtintColorに変更しようとしています。UIToolbarのtintColorをフェード/アニメーションできますか?
ここに私が試しているコードがあります。残念ながら、この変化は直ちに起こり、緑から青に変わらない。これは奇妙です。なぜなら、Appleがテザリングや通話時にツールバーの色合いを「脈打つ」ように消えることを知っているからです。ではなぜこれは機能しませんか?
// set initial tint color
myBottomToolBar.tintColor = [UIColor colorWithRed:0.15 green:0.95 blue:0.15 alpha:0.6];
//animation stuff
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.95];
[UIView setAnimationDelegate:self];
//thing to animate
myBottomToolBar.tintColor = [UIColor colorWithRed:0.15 green:0.35 blue:0.45 alpha:0.6];
//animation stuff
[UIView commitAnimations];
WSYIWYGエディタでバイナリボタンを使用してコードを貼り付けてください。そうすることで、その書式が維持されます。 – TALLBOY