I have a left-oriented image named "test.png" (like the 'R' image annotation of the doc of UIImageOrientationLeft), I first read it in with UIImage, and then create another UIImage with the image data of the first one and the orientation info, like this:
UIImage *image = [UIImage imageNamed:@"test"];
image = [UIImage imageWithCGImage:image.CGImage scale:1.f orientation:UIImageOrientationLeft];
UIImageView *imageView = [[[UIImageView alloc] initWithImage:image] autorelease];
[imageView sizeToFit];
But the image displayed on imageView is upside-down. What's wrong?