When I present a MPMediaPickerController
in iOS7
, the default tab is the Playlists tab.
How do I change the default tab to the Songs tab?
I have searched everywhere and I cannot find a solution, but I know it is possible because I see that other apps have done this.
Here is how I'm presenting the media picker controller:
- (void)showPicker {
MPMediaPickerController *mediapicker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeAnyAudio];
mediapicker.delegate = self;
mediapicker.prompt = @"Select a song";
[mediapicker setAllowsPickingMultipleItems:YES];
[mediapicker setShowsCloudItems:YES];
[self presentViewController:mediapicker animated:YES completion:nil];
}