Access device music files from iPhone app programmatically
问题 I want to access music files which are available on the iPhone and get it listed (or) get the file into my iPhone application some delegats and start playing it. Is it possible to do it ? Similar to how we access images from device photo album using UIImagePickerController delegate methods. Thank you! 回答1: You can reference MPMediaPickerController class . It functions same as UIImagePickerController class. 回答2: -(void)loadDeviceMusic{ MPMediaQuery *everything = [[MPMediaQuery alloc] init];