you can use "Reflector 2" for that. its a great tool where you can connect your iphone and show it on your desktop (windows or mac)
and you also have the possibility to record a video.
if you have a mac you could use the build in simulator and record it with QuickTime.