Rotation and resizing the image + iPhone
<p>I am trying to resize and rotate an image over the iPhone.
i picked the image and displayed it using UIImageView</p>

<p>and rotation of the image is done by two buttons (for clockwise &amp; counterclockwise)</p>

<p>resizing of image works fine while rotation button not pressed
but when i pressed to rotate image into clockwise direction and the resize the image, width of the image increases rapidly even i am trying to decrease the width.</p>

<p>and when i pressed to rotate image into counterclockwise direction and the resize the image, height of the image increases rapidly even i am trying to decrease it.</p>

<p>i found that there is some sign changed while rotating the image along with the value, coz once press the clockwise button and then counterclockwise button, and then resizing works fine.</p>

<p>i used the following code for rotating the image.</p>

<pre><code>CGAffineTransform transformRotate = CGAffineTransformMakeRotation(movingAngle);
imageViewRotation.transform = transformRotate;
</code></pre>

<p>where movingAngle is in Radians
and imageViewRotation is the UIImageView which contains the image.</p>

<p>waiting for your reply</p>
