Hi, I'm having an issue with an iPhone app I'm working on.
It uses a separate class called Radio which streams a station in. When the title of the stream is updated, it calls back to RadioViewController with the method updateTitle:
- (void)updateTitle:(NSString *)newTitle
{
NSLog(@"update title called with title: %@", newTitle);
[self.nowPlaying setText:newTitle];
}
For some reason, I can't seem to get nowPlaying to update. If I call setText from viewDidLoad, then it works fine.
Also, with any sort of user interaction, whether a button or something else, the text changes fine, as in:
- (IBAction)playButton:(id)sender
{
[self.nowPlaying setText:@"now playing test"];
}
nowPlaying is linked up in the XIB and setup as such:
IBOutlet UILabel *nowPlaying;
@property(nonatomic, retain) UILabel *nowPlaying;
And updateTitle is setup as
- (void)updateTitle:(NSString *)title;
The code builds and runs fine, without error. But the UILabel is just not changing.