From e6cdec6850c7a7760d086dfcf7cdb37f6d2e9f1f Mon Sep 17 00:00:00 2001 From: Nolan Waite Date: Fri, 14 Dec 2012 00:38:02 -0700 Subject: [PATCH] Re-fix weird forum cell background colors. Still not sure why it works in bookmarks and not in the forums list. It appears to have something to do with setting the table view's background color in -viewWillAppear. --- Source/Forums/AwfulForumsListController.m | 1 + Source/UIKit and Foundation/AwfulTableViewController.h | 2 +- Source/UIKit and Foundation/AwfulTableViewController.m | 6 ------ 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/Source/Forums/AwfulForumsListController.m b/Source/Forums/AwfulForumsListController.m index 20ff7708b..23f881ed5 100644 --- a/Source/Forums/AwfulForumsListController.m +++ b/Source/Forums/AwfulForumsListController.m @@ -187,6 +187,7 @@ - (void)retheme self.view.backgroundColor = [AwfulTheme currentTheme].forumListBackgroundColor; for (AwfulForumCell *cell in [self.tableView visibleCells]) { [self setCellImagesForCell:cell]; + [self tableView:self.tableView willDisplayCell:cell forRowAtIndexPath:nil]; } } diff --git a/Source/UIKit and Foundation/AwfulTableViewController.h b/Source/UIKit and Foundation/AwfulTableViewController.h index d73af755b..e4cf01393 100644 --- a/Source/UIKit and Foundation/AwfulTableViewController.h +++ b/Source/UIKit and Foundation/AwfulTableViewController.h @@ -33,7 +33,7 @@ - (void)configureCell:(UITableViewCell*)cell atIndexPath:(NSIndexPath *)indexPath; // Subclasses can implement to update any colors etc. when the current theme changes. Call super! -// This also gets called on viewDidLoad and viewWillAppear. +// This also gets called on viewWillAppear. - (void)retheme; @end diff --git a/Source/UIKit and Foundation/AwfulTableViewController.m b/Source/UIKit and Foundation/AwfulTableViewController.m index bb29956e8..78396ae4d 100644 --- a/Source/UIKit and Foundation/AwfulTableViewController.m +++ b/Source/UIKit and Foundation/AwfulTableViewController.m @@ -44,12 +44,6 @@ - (void)themeChanged:(NSNotification *)note [self retheme]; } -- (void)viewDidLoad -{ - [super viewDidLoad]; - [self retheme]; -} - - (void)viewWillAppear:(BOOL)animated { [super viewWillAppear:animated];