アプリケーションで音楽からプレイリストを選択できる基本的なアプリケーションを実装しています。私はそれを作る。しかし、私の問題は、直接音楽タブを直接表示していることです。しかし、私の要件によれば、ユーザーがそのビューに移動したときにプレイリスト タブを表示する必要があります。以下は私のコードです、
MPMediaPickerController *picker =
[[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypeMusic];
picker.delegate = self;
picker.allowsPickingMultipleItems = YES;
picker.prompt = NSLocalizedString (@"Select any song from the list", @"Prompt to user to choose some songs to play");
// The media item picker uses the default UI style, so it needs a default-style
// status bar to match it visually
[[UIApplication sharedApplication] setStatusBarStyle: UIStatusBarStyleDefault animated: YES];
[self presentModalViewController: picker animated: YES];
[picker release];