This project allows you to control the servo motor with the movement of your iPhone.

It requires to have the app TouchOSC on your phone, but I guess it can be adapted to work with other apps that broadcast OSC.

It also requires processing (http://www.processing.org/) to enable communication between arduino and the iPhone.