我正在实现一个基本应用程序,它允许从应用程序中的音乐中选择一个播放列表。我做到了。但我的问题是它直接显示音乐标签。但是根据我的要求,当用户进入该视图时,我需要显示播放列表选项卡。以下是我的代码,
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];