rotate UIImage and nothing displays
<p>I used the codes below to rotate an UIImage</p>

<pre><code>double angle = -90;
NSData *imageData = [NSData dataWithContentsOfFile:sss];
UIImage *image =[UIImage imageWithData:imageData];
CGSize s = {image.size.width, image.size.height};
UIGraphicsBeginImageContext(s);
CGContextRef ctx = UIGraphicsGetCurrentContext();
CGContextTranslateCTM(ctx, 0,image.size.height);
CGContextScaleCTM(ctx, 1.0, -1.0);
CGContextRotateCTM(ctx, 2*M_PI*angle/360);
CGContextDrawImage(ctx,CGRectMake(0,0,image.size.width, image.size.height),image.CGImage);
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
[myUIImageView  setImage:newImage];
</code></pre>

<p>but nothing displays on myUIImageView.</p>

<p>If there is anything wrong?</p>

<p>Welcome any comment</p>

<p>Thanks</p>

<p>interdev</p>
