CGAffineTransformMakeRotation expects angle in radians, not in degrees.
#define DEGREES_TO_RADIANS(x) (M_PI * (x) / 180.0)
...
CGAffineTransformMakeRotation(DEGREES_TO_RADIANS(45));
More Related Contents:
- How do I make UILabel display outlined text?
- CGContextDrawImage draws image upside down when passed UIImage.CGImage
- Tweening / Interpolating between two CGPaths / UIBeziers
- How do I draw a point using Core Graphics?
- Attempt to present UIViewController on UIViewController whose view is not in the window hierarchy
- How do I apply a perspective transform to a UIView?
- UIView with rounded corners and drop shadow?
- How to easily resize/optimize an image size with iOS?
- Loaded nib but the ‘view’ outlet was not set
- Eliminate extra separators below UITableView
- Giving UIView rounded corners
- How to save picture to iPhone photo library?
- Measuring cellular signal strength
- Making the iPhone vibrate
- How do I change the title of the “back” button on a Navigation Bar
- How to load local html file into UIWebView
- How do I get the day of the week with Foundation?
- Allow only Numbers for UITextField input
- App crashed in iOS 6 when user changes Contacts access permissions
- Adding the “Clear” Button to an iPhone UITextField
- Objective C NSString* property retain count oddity
- How to exclude Notes and Reminders apps from the UIActivityViewController?
- How to scroll to the bottom of a UITableView on the iPhone before the view appears
- How can I click a button behind a transparent UIView?
- How can I set CG_CONTEXT_SHOW_BACKTRACE environmental variable?
- Aligning UIToolBar items
- Fade out scrolling UITextView over image?
- How do I delete all objects from my persistent store in Core Data?
- How to copy text to clipboard/pasteboard with Swift
- How do you REALLY remove Copy from UIMenuController