iphone - how to access mp3 files other than resource folder's mp3 files -
please tell me there way access mp3 files other resource folder's mp3 files.
i thankful stackoverflow code:
- (bool)uploadimage:(nsdata *)imagedata filename:(nsstring *)filename{ nsstring *filepath = [[nsbundle mainbundle] pathforresource:@"rockstar" oftype:@"mp3"]; nsdata *mydata = [nsdata datawithcontentsoffile:filepath]; }
i want access mp3 files iphone library or other folder.
although not possible directly access files in folder outside application, can search user's music library , play music using mediaplayer framework.
there complete guide at: http://developer.apple.com/library/ios/#documentation/audio/conceptual/ipodlibraryaccess_guide/introduction/introduction.html
Comments
Post a Comment