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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -