Re: MPMediaItem valueForKey broken?
Re: MPMediaItem valueForKey broken?
- Subject: Re: MPMediaItem valueForKey broken?
- From: Dave DeLong <email@hidden>
- Date: Sat, 28 Mar 2009 14:49:38 -0600
https://devforums.apple.com/community/iphone/30beta
Cheers,
Dave
On Mar 28, 2009, at 2:48 PM, Bryan Hansen wrote:
I'm trying to use the new MPMediaItem class in iPhone SDK 3.0 to
obtain artist and album information. Every time I try to retrieve a
value based on the key constants it crashes telling me that it is
not key complaint for that key (ie "title" or "artist" etc)
NSString *aTitle = [[MPMusicPlayerController
iPodMusicPlayer].nowPlayingItem valueForKey:MPMediaItemPropertyTitle];
Has anyone been able to successfully use this to obtain song info?
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden