avaudioplayer - Delete audio file from documents directory error -


When I try to delete an audio file (.a.f.) from the directory of documents, I get the error:

Could not delete file - - The operation could not be completed. (Coco error 4.)

I do the same with images and it is working, so the way I do it should be right. Does anyone know what error means?

My guess is that there is something with AVAudioPlayer? Should I turn it off before being able to destroy or do something else ?!

thx

error 4 seems NSNoSuchFileError -

Are you sure you have the right path?


Comments