我在 iPad 上使用这个媒体选择器时遇到了一些问题……我可以在一个新的基于视图的应用程序中轻松地重现问题。
1) 在 XCode 中为 iPad 创建新的基于视图的应用程序
2)打开视图控制器的源代码并添加以下内容
- (void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
MPMediaPickerController *picker = [[MPMediaPickerController alloc] initWithMediaTypes: MPMediaTypeAnyAudio];
picker.allowsPickingMultipleItems = NO;
picker.prompt = NSLocalizedString (@"Select a song to play", "Prompt in media item picker");
[self presentModalViewController:picker animated:YES];
[picker release];
}
而已。当我运行生成的应用程序时,我发现我无法激活底部标签栏上的任何内容。我也无法选择表格视图中底部 4 个项目中的任何一个。
有没有其他人遇到过这个问题并找到解决方法?
===
此外,我尝试使用 UIModalPresentationStyleFormPage 模式呈现选择器,但虽然这是功能性的,但它最终会奇怪地显示,并且不会被我的应用程序接受。如果有人知道以 FormPage 样式正确居中此东西的方法,那也可以解决问题,至少对我而言。