How to move and rotate object in iphone
<p>I am developing a small game in iphone... Game concept is place an object in top of the bar...Rotating a bar using accelerometer. When bar rotating , i need to move an object with respect to bar. How to implement this concept...Any examples or references?</p>

<p>Rotating both img:</p>

<p>barImg,objImg  //UIImageView</p>

<pre><code>    barImg.transform = CGAffineTransformMakeRotation(Ypos);
 objImg.transform=CGAffineTransformMakeRotation(Ypos);
</code></pre>
