<p>I know how to move a layer based on touch. But I would also like to be able to rotate the image. </p>

<p>Is there any sample code that shows how to do this? Or can anyone give me some advice?</p>

<p>Thanks!</p>

You would use the view's transform property.
There's some example code for rotating the view in the iPhone OS Programming Guide, under
Launching in Landscape Mode