MPMediaPlayerController错误:等待来自com.apple.MusicUIService的fence屏障超时

时间:2013-12-28 14:38:02

标签: objective-c ios7 mpmediapickercontroller

为iOS7开发,我收到以下错误:

<MPRemoteMediaPickerController: 0x175338b0> timed out waiting for fence barrier from com.apple.MusicUIService

这是我用来实例化和呈现媒体选择器控制器的代码。

- (void)showMediaPicker {

    localMediaPicker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic];

    localMediaPicker.delegate = self;
    localMediaPicker.allowsPickingMultipleItems = NO;

    // show media picker
    [self presentViewController:localMediaPicker animated:YES completion:NULL];

}

我发誓这适用于以前版本的iOS,但我无法弄清楚问题是什么。还有其他人遇到过这个问题吗?

0 个答案:

没有答案