self.imageview.transform = CGAffineTransformMakeRotation(M_PI_2);
Swift 4+:
self.imageview.transform = CGAffineTransform(rotationAngle: CGFloat(Double.pi/2))
More Related Contents:
- iPhone/iOS JSON parsing tutorial [closed]
- How to load a UIView using a nib file created with Interface Builder
- How to handle different orientations in iOS
- library not found for -lPods
- Difference between [NSMutableArray array] vs [[NSMutableArray alloc] init]
- iOS Image Orientation has Strange Behavior
- Is there any limit in storing values in NSUserDefaults?
- Playing system sound without importing your own
- UITextField format in xx-xx-xxx
- Call a parent view controller (through a navigationcontroller)
- How to make a call programmatically?
- Determining if an iPhone is Jail broken Programmatically
- How does the iOS app Display Recorder record the screen without using private API?
- How to detect that animation has ended on UITableView beginUpdates/endUpdates?
- View frame changes between viewWillAppear: and viewDidAppear:
- iphone app allow background music to continue to play
- Weak and strong property setter attributes in Objective-C
- iOS Low Memory Crash, but very low memory usage
- iOS save photo in an app specific album
- Byte Array to NSData
- UIBarButtonItem: target-action not working?
- Black screen instead of launch image on iPad
- Why do weak NSString properties not get released in iOS?
- Exception Types in iOS crash logs
- Prevent scrolling in a MKMapView, also when zooming
- Loading an Image from documents directory
- iOS: How do I generate 8 unique random integers?
- Making a call programmatically from iPhone app and returning back to the app after ending the call
- Register UncaughtExceptionHandler in Objective C using NSSetUncaughtExceptionHandler
- How to automatically size UIScrollView to fit the content