ALAssetRepresentation’s orientation on different iOS versions

Originator:tomas.znamenacek
Number:rdar://11604456 Date Originated:June 6, 2012
Status:Closed Resolved:July 12, 2012
Product:Docs Product Version:
Classification:Enhancement Reproducible:Always
 
The current documentation for [ALAssetRepresentation fullScreenImage] says:

„In iOS 5 and later, this method returns a fully cropped, rotated, and adjusted image—exactly as a user would see in Photos or in the image picker.

To create a correctly-rotated UIImage object from the CGImage, you use imageWithCGImage:scale:orientation: or initWithCGImage:scale:orientation:, passing the values of orientation and scale.“

The second paragraph only pertains to iOS 4, but it’s not really clear from the wording. The second paragraph would better read:

„In iOS 4, use imageWithCGImage:scale:orientation: or initWithCGImage:scale:orientation: to get a correctly-rotated UIImage object from the CGImage, passing the values of orientation and scale.“

Comments

Resolved in iOS 6

The documentation in iOS 6 has been reworded, leaving out the second paragraph. I think that’s clear enough.

By tomas.znamenacek at July 12, 2012, 6:54 a.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!