I want to allow the user to switch between a few color palettes in the application, IE how XCode and other text editors allow you to switch between light and dark backgrounds. I'm able to do all this simply enough, but now I'm trying to wrap the change in a simple animation block so the color changes fade in. Everything works great with the exception of my table view cells. The colors change, but they don't animate.
[UIView animateWithDuration:0.5 animations:^{
self.tableView.backgroundColor = [UIColor whiteColor];
for (UITableViewCell *cell in self.tableView.visibleCells)
{
cell.textLabel.textColor = [UIColor blueColor];
}
}];
I'm attempting not to reload the entire table, as that will cause a lot of things to layout again which I don't want. Frankly, I've tried it a couple times and it doesn't work anyway.
For what it's worth, my UITableView is grouped, though I don't think that's really effecting my solution.
The answers listed here are interesting, but I don't believe are relevant to my problem - I am changing text color which never animates: Animating UITableViewCell's backgroundColor in block animation