create video from array of UIImages and save the video to iPhone library. AVAssetLibrary +AVFoundation

后端 未结 4 416
陌清茗
陌清茗 2021-01-31 00:14

Problem in saving video to iPhone Library. i have an array of UIImages,and two buttons ,\"convertToVideo\"&\"saveToiPhoneLib\"


-(IBAction) convertToVideo
{
  NS         


        
4条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-31 00:59

    Yes, I had the same error:

    Error Domain=AVFoundationErrorDomain Code=-11823 "Cannot Save" UserInfo=0x193ce0 {NSLocalizedRecoverySuggestion=Try saving again., NSUnderlyingError=0x179e40 "The operation couldn’t be completed. (OSStatus error -12412.)", NSLocalizedDescription=Cannot Save}
    

    But only on simulator, when I ran on a device, the save to the photo library worked just fine.

提交回复
热议问题