Skip to content

Commit

Permalink
Re-fix weird forum cell background colors.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nolanw committed Dec 14, 2012
1 parent ec533cb commit e6cdec6
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 1 addition & 0 deletions Source/Forums/AwfulForumsListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
}

Expand Down
2 changes: 1 addition & 1 deletion Source/UIKit and Foundation/AwfulTableViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 0 additions & 6 deletions Source/UIKit and Foundation/AwfulTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ - (void)themeChanged:(NSNotification *)note
[self retheme];
}

- (void)viewDidLoad
{
[super viewDidLoad];
[self retheme];
}

- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
Expand Down

0 comments on commit e6cdec6

Please sign in to comment.