On iPhone: Find out what song is currently playing? (in the iPod music player) [duplicate]
MPMediaItem * song = [[MPMusicPlayerController iPodMusicPlayer] nowPlayingItem];NSString * title = [song valueForProperty:MPMediaItemPropertyTitle];NSString * album = [song valueForProperty:MPMediaItemPropertyAlbumTitle];NSString * artist = [song valueForProperty:MPMediaItemPropertyArtist];