RecordScreen-iOS9+ 是一个实现了 iOS9 及以上版本屏幕录制的项目。
a.A video recording your screen in your app with ReplayKit.
b.Red dots indicating user action.
c.A log file for user action locating in the /path-to-your-app's-document-directory/nkrecordscreen/log.txt.
您的应用程序激活时开始录制,并及时保存视频。如果您想自己实现,可以像下面这样调用:
StartRecording:[[NKRecordManager sharedInstance] startRecording];
StopRecording:[[NKRecordManager sharedInstance] stopRecording];
Simply add those files .h and .m files to your project.
Apple's ReplayKit seems to hide some content when recording, like the statusbar, UIActionSheet,etc. I guess it might due to their consideration to user's privacy.
On the other side, I did some kind of method swizzle in order to save the video automatically, that is to say, it might be rejected by the review team for use of private api.You can disable it by remove those method-swizzle-related category codes if needed.
RecordScreen-iOS9+ 在 MIT 许可证下发布。有关详细资料,请参阅 LICENSE。