在iPad上没有检测到歌曲 [英] No songs detected on iPad

查看:161
本文介绍了在iPad上没有检测到歌曲的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序已被Apple拒绝:(
报告的问题是

My app has been rejected by Apple :( The issue reported is


应用程序未检测到歌曲iPad。

The application does not detect the songs on the iPad.

为了理解这个问题,我已经尝试过所有的测试,但在我的ipad和MY上歌曲,一切正常100%。

I already tried to have all the tests I can in order to understand the issue, but on MY ipad and on MY songs, everything works 100% fine.

在我的代码中,我正在通过以下方式处理空库的情况:

In my code I'm handling the situation of an empty library in the following way:

MPMediaQuery *albums = [MPMediaQuery albumsQuery];
NSArray *albumCollections = [albums collections];
if ([albumCollections count] > 0) {
    // everything fine, let's start
}
else {
    // display an UIAlertView warning the user that the library is empty and stop
}

现在Apple刚给我发了一个屏幕截图,显示它总是出现的UIAlertView,即使他们说他们有iPad上的歌曲。

Now Apple just sent me a screenshot to display that the UIAlertView it's always showing up, even if they state they have songs on the iPad.

可能是什么问题?可能 albumCollections 即使设备上有歌曲也是空的?非常感谢任何帮助,我在应用程序中付出了很多努力并且因为我无法复制的原因而被拒绝是非常令人沮丧的:(

What can be the issue? Can maybe albumCollections be empty even if there are songs on the device? Any help is greatly appreciated, I put lot of effort in the app and seeing it rejected for a reason I'm not able to reproduce is so frustrating :(

推荐答案

您从代码中学到的是没有MPMediaItemCollections(即没有专辑)。这与声称没有歌曲不同。

What you learn from your code is that there are no MPMediaItemCollections (i.e. no albums). That is not the same as claiming that there are no songs.

这篇关于在iPad上没有检测到歌曲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆