There is a sample code that records the phone screen:
// Copyright 2016 Mail.Ru Group. All Rights Reserved. #include "PsReplayKitPrivatePCH.h" #import