iOS: Displaying currently played track info in LockScreen?
问题 As of iOS 5 we have access to MPNowPlayingInfoCenter to display info in the lockscreen and in the multimedia controls on the multitasking bar. I have an app that plays local audio files. I want to display info like the artist's name, the album and the artwork on the lockscreen with MPNowPlayingInfoCenter , but the only way to do this (As far as I know) is to use MPMusicPlayerController and get nowPlayingItem ... The problem is that MPMusicPlayerController is used to play iPod Music only, and