I\'ve been tearing my hair out trying to get the AVFoundation camera to capture a picture in the correct orientation (i.e. the device orientation) but I can\'t get it to wor
You can also create an intermediate CIImage, and grab the properties dictionary
NSDictionary *propDict = [aCIImage properties]; NSString *orientString = [propDict objectForKey:kCGImagePropertyOrientation];
And Transform accordingly :)
I love how easy it is to access all this image metadata in iOS5!