Я получаю доступ к библиотеке ipod в приложении iphone и показываю название, текст и обложку альбома. Я также хочу показать тексты песен. Я добавил тексты песен в itunes и синхронизирую их с устройством, но мой код не показывает тексты песен.
Пример отсюда и код для получения текста: -
- (void)handleNowPlayingItemChanged:(id)notification {
// Ask the music player for the current song.
MPMediaItem *currentItem = self.musicPlayer.nowPlayingItem;
// Display the artist, album, and song name for the now-playing media item.
// These are all UILabels.
self.songLabel.text = [currentItem valueForProperty:MPMediaItemPropertyTitle];
self.artistLabel.text = [currentItem valueForProperty:MPMediaItemPropertyAlbumArtist];
self.albumLabel.text = [[currentItem valueForProperty:MPMediaItemPropertyLyrics]retain];
}
Пожалуйста помоги. Спасибо