I am trying to copy a uiimage (ultimately I am planning to blur the copy). Right now the copied image shows correctly in the simulator but ends up rotated 90 degrees when running on the device.
I am using the following to create acopy:
CGImageRef cgImage = [sourceImage CGImage];
// Make a new image from the CG Reference UIImage *copyOfImage = [[UIImage alloc] initWithCGImage:cgImage];
The source image is coming from a UIImagePickerController. The same results happen whether I grab the soruce from the library or the camera.
Thanks in advance for any help