RPScreenRecorder stopRecording块没有被调用
我已经足够的search,但没有得到解决办法。
我正在使用ReplayKit来logging我的应用程序的屏幕。 我已经开始通过电话录制屏幕了
let sharedRecorder = RPScreenRecorder.shared() sharedRecorder.startRecording() { error in if let error = error { self.showScreenRecordingAlert(message: error.localizedDescription) } }
当我按下我正在呼叫的stopRecord
button时
let sharedRecorder = RPScreenRecorder.shared() sharedRecorder.stopRecording { previewViewController, error in if let error = error { self.showScreenRecordingAlert(message : error.localizedDescription) return } }
但是我面对的问题是,程序控制不进入stopRecording
块内部。 当我做po sharedRecorder.isRecording
,它总是返回false。 我已经做了我所知道的一切,但没有得到解决办法。