There is none without jailbreaking. Apple doesn't permit this sort of app in the App Store. There are hardware options that include connecting to your Mac/PC, but nothing directly on the device.
It's not a perfect solution, but you can use AirServer to turn your PC or Mac into an AirPlay receiver so you can mirror your iOS device's display on your PC/Mac and use whatever screen capture tool you like to record.