2
이 내가 또한 mediaItemCollection의 일부 인덱스에서 MPMediaItem 객체를 초기화의 대리자 메서드MPMediaPickerController를 사용하여 선택한 파일의 경로를 얻는 방법은 무엇입니까?
- (void)mediaPicker:(MPMediaPickerController *)mediaPicker didPickMediaItems:(MPMediaItemCollection *)mediaItemCollection
{
/*I know only here I can get path but don't know how?
mediaItemCollection don't have such kind of properties or any
method to get selected file path.
So is there any other way to do so?
Note: I required this path, so that I can store it somewhere and can play it in future.
*/
}
NSData * someData = [NSData dataWithContentsOfURL : yourURLVariable]; – tams