In this tutorial, you will learn how to utilise iOS 9's new ReplayKit framework. This framework allows you to record your app's screen and create HD video files shareable directly from your app.
Complete files for the Tuts+ tutorial: An Introduction to ReplayKit
Read this tutorial on Tuts+.