Something strange is happening for me with reloadData
ONLY IN iOS 7.1. This code works PERFECTLY in iOS 7.0. I update some variables and then call reloadData
:
myNum = 12;
[self.tableView reloadData];
then in cellForRowAtIndexPath
:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
…
[cell.leftScoreButton setTitle:[NSString stringWithFormat:@"%d", myNum] forState:UIControlStateNormal];
cell.leftScoreButton.enabled = NO;
…
This is no longer updating the button title correctly in 7.1, but it works fine in 7.0. Also if I pop up with an AlertDialog, then it will successfully reload the tableView
button with the correct title. What part of AlertDialog
calls update/refresh the underlying screen? Can I call that manually without actually popping up with an AlertDialog
?
I have already tried calling [self.view setNeedsDisplay]
and setNeedsLayout
. Neither helped.