Take images that are initialized upside down or sideways, and make them upright.
UIImage *newImage = [UIImage imageNamed:@"someImage.png"];
...
[newImage fixOrientation];
Available in CocoaPods
pod 'UIImage+FixOrientation'| Name | Name | Last commit date | ||
|---|---|---|---|---|
Take images that are initialized upside down or sideways, and make them upright.
UIImage *newImage = [UIImage imageNamed:@"someImage.png"];
...
[newImage fixOrientation];
Available in CocoaPods
pod 'UIImage+FixOrientation'