I have a 3D object rendered in OpenGL ES in iPhone.

When I touch the screen at some point say x-angle from the center. The object should be rotated proportional to the touch and slowly back to the original position.

Can anyone kindly suggest how to do it?