Iphone 播放当前歌曲

Iphone 播放当前歌曲,iphone,objective-c,Iphone,Objective C,可能重复: 是否可以在iPhone的音乐播放器中获取当前播放歌曲的信息? 它可以从其他应用程序访问吗? 谢谢是的,你可以上课 谢谢我不熟悉MPMediaItem,现在也不接近mac,我能了解ID3的详细信息吗?比如艺术家和名字等等? + (MPMusicPlayerController *)iPodMusicPlayer Return Value The iPod music player. nowPlayingItem The currently-playing media item,

可能重复:

是否可以在iPhone的音乐播放器中获取当前播放歌曲的信息? 它可以从其他应用程序访问吗? 谢谢

是的,你可以上课


谢谢我不熟悉MPMediaItem,现在也不接近mac,我能了解ID3的详细信息吗?比如艺术家和名字等等?
+ (MPMusicPlayerController *)iPodMusicPlayer
Return Value

The iPod music player.
nowPlayingItem

The currently-playing media item, or the media item, within a queue, that you have designated to begin playback with.
@property (nonatomic, copy) MPMediaItem *nowPlayingItem
MPMediaItem *currentPlayingSong = [[MPMusicPlayerController iPodMusicPlayer] nowPlayingItem];