Rotate UI Button in iPhone SDK

A quick and hopefully obvious question.

I have a programmatically created button in an iPhone app that I want to rotate 45 degrees clockwise with the name buttonuq, how can I do this?

+6
iphone button rotation
source share
1 answer

You can use a transformation such as:

yourButton.transform = CGAffineTransformMakeRotation(45.0*M_PI/180.0); 

Good luck

+18
source share

All Articles