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.
UISlider の値に応じて画像を回転させる方法はありますか? Gestures を使用して回転を簡単に実行できることはわかっていますが、UISLider を使用して実行する必要があります。
単純に使用します:
imageView.transform = CGAffineTransformMakeRotation(slider.value * 2*M_PI / slider.maximumValue);