我的视图有一个带有文本标签覆盖的背景图像什么是基于背景图像确定文本颜色的最好/最好的动态方式,因此它可以读取(现在,我只对确定文本颜色应该是暗的还是感兴趣光)
谢谢 :)
我将两个录音(使用录音AVAudioRecorder)合并为一个文件.使用AVAssetExportSession导出的合并文件(只要我即在当前视图控制器)完美的作品第一次但当重新载入该视图(新的会话)的AVAssetExportSession exportAsynchronouslyWithCompletionHandler:方法没有得到根本称为(没有回电话! )没有错误没有什么...我试图记录AVAssetExportSession对象,我第一次得到这个
Run Code Online (Sandbox Code Playgroud)<AVAssetExportSession: 0x155b3250, asset = <AVMutableComposition: 0x156474c0 tracks = ("<AVMutableCompositionTrack: 0x156a0bb0 trackID = 1, mediaType = soun, editCount = 0>")>, presetName = AVAssetExportPresetAppleM4A, outputFileType = (null)
这是第二次
<AVAssetExportSession: 0x1559e840, asset = <AVMutableComposition: 0x155f7f30 tracks = ("<AVMutableCompositionTrack: 0x155f0120 trackID = 1, mediaType = soun, editCount = 1>")>, presetName = AVAssetExportPresetAppleM4A, outputFileType = (null)
Run Code Online (Sandbox Code Playgroud)
我注意到的唯一区别是editCount = 1.
我知道这听起来令人困惑,这对我来说.这里发生了什么?
我的代码:
AVAssetExportSession* exportSession = [AVAssetExportSession
exportSessionWithAsset:composition
presetName:AVAssetExportPresetAppleM4A];
NSLog(@"exportSession: %@", exportSession);
exportSession.outputURL = [NSURL fileURLWithPath:combined];
exportSession.outputFileType = …Run Code Online (Sandbox Code Playgroud)