About Me

My photo
Drum & Bass Producer, Software Developer, Love my Cats

iPhone: How to rotate a UIButton

I wanted to put a rotated button on my view. Here's how to do it in code:

theButton.transform = CGAffineTransformMakeRotation(M_PI / -2);