Today I started to get my apps ready for iOS8.
I discovered that the subtitles of my UITableCells won't update within viewWillAppear
.
I brought that down to a minimal example:
I've got a static cell TableViewController with 2 cells (style = subtitle)
One subtitle is empty the other one is set.
I update the subtitles like this:
- (void) viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[[self.without detailTextLabel] setText:@"foobar"];
[[self.with detailTextLabel] setText:@"barfoo"];
}
While everythin works under iOS7 (and 6 and 5), iOS8 won't update the title of the first cell.
However, when I touch the cell it will update and show the text.
Is this a simulator issue? A bug? Am I doing something wrong?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…