I encounter a strange thing while coding in Xcode 4.3. The nature of problem is described in the title. I mentioned this together with a storyboard connection problem in another post. The connection problem seems to go away at least for now. But the value assign problem persists. So I put it up as a new post.
-(void) setQuestion:(NSString *)question
{
_question = question;
self.questionLabel.text = question;
NSLog(@"The quesion is %@",question);
NSLog(@"The quesion label text is %@",self.questionLabel.text);
}
The result of the NSLog:
2012-07-29 04:03:53.817 Kitchen Sink[18628:f803] The quesion is What do you want your label to say?
2012-07-29 04:03:53.820 Kitchen Sink[18628:f803] The quesion label text is (null)
Any thought?