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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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