Created
June 23, 2009 05:36
-
-
Save takuma104/134377 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MPMusicPlayerController *mpc = [MPMusicPlayerController iPodMusicPlayer]; | |
MPMediaItem *item = [mpc nowPlayingItem]; | |
NSString *tw = [NSString stringWithFormat:@"Now Playing: %@ - %@ - %@", | |
[item valueForProperty:MPMediaItemPropertyTitle], | |
[item valueForProperty:MPMediaItemPropertyAlbumTitle], | |
[item valueForProperty:MPMediaItemPropertyArtist]]; | |
NSLog("%@", tw); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment