我正在使用MPMediaPickerController
播放我自己的文件(本地或在云中购买)。这是我使用的代码
musicPickerView = [[UIView alloc] initWithFrame:fullScreenRect];
musicPickerView.alpha = 0.0f;
musicPicker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeMusic];
musicPicker.showsCloudItems = true;
musicPicker.delegate = self;
musicPicker.allowsPickingMultipleItems = false;
musicPicker.prompt = NSLocalizedString(@"Select a song", @"Select a song");
musicPicker.view.frame = musicPickerView.bounds;
[self addChildViewController:musicPicker];
[musicPickerView addSubview:musicPicker.view];
[self.view addSubview:musicPickerView];
[musicPicker didMoveToParentViewController:self];
[self fadeInMusicPicker:true];
除了“为您”和“浏览”选项卡外,一切正常。我有一个有效的苹果音乐订阅(通过SKCloudServiceCapability
->验证musicCatalogPlayback
)。
但是当我打开时,MPMediaPickerController
我看到了一个无限的微调器。
知道我可能做错了什么吗?