Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
画像が入ったUIButtonがあり、タップするたびに画像を回転させたいです。どうやってやるの?中をタップするたびに違う画像のコンディショナルが使えると思っていました。画像を回転させる方法はありますか?
画像の行列を変換できます。そのためにUIViewanimateWithDurationを使用することから始めます。
CGAffineTransformMakeRotationを参照してください