iOS Screen recording
Starting from iOS8 and Yosemite You can capture the screen of iOS device from Quicktime directly. Here's the steps:


Connect your iPhone, iPad or iPod touch to your Mac via a Lightning Cable.
Open the QuickTime app.
Go to File and select ‘New Movie Recording’.
A recording window will appear. You will a see little arrow for drop down menu in front of the record button. Click that arrow and select your iPhone.
Select the Mic of your iPhone if you want to record music, app/game sounds.
Click the Record button. Now perform the tasks on your iOS device that you want to record.
Once done tap the stop button and save the video.
Done!



NOTE: works only with iOS8 and Yosemite and devices with Lightning Cable.

All steps taken from: ioshacker website. Enter there for screenshots.