MPMediaPickerController完成按钮缺失

时间:2015-12-18 11:26:36

标签: ios objective-c mpmediapickercontroller

我正面临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];

选择器正在显示但是选择器中缺少完成按钮。如果我先点击我们已完成按钮的地方,那么选择器就会解雇。 感谢您花时间阅读我的问题。任何想法/建议都可能非常有用。

1 个答案:

答案 0 :(得分:0)

所以,问题是按钮的外观是通过UIAppearance改变的。

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