iphone - How to check if ipod has music files -


i trying have app play music ipod using mpmusicplayercontroller there devices not have music in there ipod library. can tell me if there way check whether there music in ipod library or not before initializing ipod player.

thanks in advance.

if ([[[mpmediaquery songsquery] items] count] > 0) {     // user has songs in or library. } 

Comments

Popular posts from this blog

unicode - Are email addresses allowed to contain non-alphanumeric characters? -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

c++ - Convert big endian to little endian when reading from a binary file -