I load a detailed view of an article when I click on a row in a UITableView. When clicked, it loads an object with data, and I pass that object to the next controller, which is pushed onto the stack. However, when I do this:
- (void)showArticle { [aTitle setText:[[self article] title]]; [aTitle setBackgroundColor:[UIColor clearColor]]; [[self view] addSubview:aTitle]; [aCategory setText:[[self article] category]]; [aCategory setBackgroundColor:[UIColor clearColor]]; [[self view] addSubview:aCategory]; [aAuthors setText:[[self article] authors]]; [aAuthors setBackgroundColor:[UIColor clearColor]]; [[self view] addSubview:aAuthors]; }
title displayed fine, but category and authors not displayed. When I debug, I get “out of scope” when I look at the values of the category / authors. The article object is @synthesized, and I checked it and it has the correct data.
Any ideas? Does this mean that the method is personal or something?
Thanks!
source share