iOS录制屏幕

[10秒学会]

对着背影说爱祢 提交于 2021-01-10 17:01:37
前言:我是赵大财,10秒学会系列,绝不废话连篇! 力求10秒,让你了解 会用此知识点 // // ViewController.m // DCReplayKit // // Created by point on 16/4/5. // Copyright © 2016年 tshiny. All rights reserved. // #import "ViewController.h" #import <ReplayKit/ReplayKit.h> @interface ViewController ()<RPPreviewViewControllerDelegate> @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; RPScreenRecorder *recorder = [RPScreenRecorder sharedRecorder]; if([recorder isAvailable]) { NSLog(@"支持录制"); }else{ NSLog(@"不支持录制"); } UIButton *startBtn = [[UIButton alloc]initWithFrame:CGRectMake(10, 10, 100, 100)]; [self.view