缺少 MPMediaPickerController 完成按钮

MPMediaPickerController done button missing

我在 MPMediaPickerController 中遇到完成按钮问题。

Device: iPod Touch

iOS :9.2   

 MPMediaPickerController  *picker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic];


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

// The media item picker uses the default UI style, so it needs a default-style
//      status bar to match it visually
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];

[self presentViewController:picker animated:YES completion:nil];

选择器正在显示,但选择器中缺少完成按钮。如果我点击我们之前完成按钮的地方,选择器就会消失。 感谢您花时间阅读我的问题。任何 ideas/suggestion 都可能非常有帮助。

因此,问题是通过 UIAppearance 更改了按钮的外观。

对于遇到相同问题的人,请检查项目中是否存在 appearanceappearanceWhenContainedIn:appearanceForTraitCollection: