将音频文件保存在文档目录中

时间:2012-03-21 13:31:54

标签: iphone mpmediapickercontroller

我正在使用MPMediaPickerController选择一个音频文件,一旦我选择,我希望它存储到我的应用程序沙箱(文档目录中的某些位置)。有没有办法这样做?

//I am implementing MPMediaPickerController delegates

- (void)mediaPicker:(MPMediaPickerController *)mediaPicker didPickMediaItems:(MPMediaItemCollection *)mediaItemCollection
{
    //Here I can store selected audio into my application sandbox, but don't know how?

    NSLog(@"%@",[mediaItemCollection description]);
}

0 个答案:

没有答案