How to retrieve the list of songs of Songs Library in array?
<p>Following code retrieves all the songs present in my iPhone but I want to retrieve all the songs in an array. I mean can I have the array of the names of songs in an array? If yes, how it can be done?</p>

<p>Thanks-</p>

<pre><code> MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypeMusic];

 picker.delegate = self;
 picker.allowsPickingMultipleItems = YES;
 picker.prompt = NSLocalizedString (@"Add songs to play", "Prompt in media item picker");

 [[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleDefault animated: YES];

 [self presentModalViewController: picker animated: YES];

 [picker release];
</code></pre>
