Skip to content

Commit

Permalink
Added section titles on Appearance settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero committed Sep 10, 2016
1 parent b751c5a commit 18c90c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Settings/ViewControllers/Appearance/BKAppearanceViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,20 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
return cell.bounds.size.height;
}

- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
switch(section) {
case BKAppearance_Terminal:
return @"PREVIEW";
case BKAppearance_Themes:
return @"THEMES";
case BKAppearance_Fonts:
return @"FONTS";
default:
return nil;
}
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *cellIdentifier = [self cellIdentifierForSection:indexPath.section];
Expand Down

0 comments on commit 18c90c6

Please sign in to comment.