Mahesh Verma Mahesh Verma - 19 days ago 10
iOS Question

iOS - Save audio files to iTunes music library

I am working on an audio app where I need to ask user if he/she wish to save the recording. Now my problem is where should I save this file. Till now I googled this and found that apple won't allow to write outside of the sandbox. And writing big files in document directory may cause app rejection. So anyone experienced the same issue, please share solution.

Ref:
iOS: Saving audio file visible in iTunes Library

Answer

Get the image and save like this

UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:), nil);

For more info: https://developer.apple.com/reference/uikit/1619125-uiimagewritetosavedphotosalbum

Comments