Simply connect your device to your Mac with a USB and you are good to go.
Not only can it record your iPhone or iPad, it can also record the screen of your Mac.
Below you will see a GIF with a 19 second YouTube video embedded below (same as GIF but with audio).
Any questions - please let me know. I would be more than happy to provide you with more information.