Он объявлен как «песня», а не как песня. Вы никогда не объявляли указатель на tweetTextView в .h, а setChars не определен в ЛЮБОМ файле.
Ваш код ДОЛЖЕН БЫТЬ:
- (IBAction)playingSong {
MPMediaItem *theSong = [[MPMusicPlayerController iPodMusicPlayer] nowPlayingItem];
NSString *theTitle = [theSong valueForProperty:MPMediaItemPropertyTitle];
NSString *theArtist = [theSong valueForProperty:MPMediaItemPropertyArtist];
NSString *nowPlaying = [NSString stringWithFormat:@"#NowPlaying %@ by %@", theTitle, theArtist];
//Declare tweetTextView in the .h!!
tweetTextView.text = [NSString stringWithFormat:@"%@%@", nowPlaying, tweetTextView.text];
//[self setChars]; Define this In the .h!
}
- (IBAction)sendMusicTweet:(id)sender {
TWTweetComposeViewController *tweetViewController = [[TWTweetComposeViewController alloc] init];
[tweetViewController setInitialText:tweetTextView.text];
[self presentModalViewController:tweetViewController animated:YES];
}