Skip to content

Commit

Permalink
Using bold font for reference history
Browse files Browse the repository at this point in the history
  • Loading branch information
tapwork committed Sep 16, 2014
1 parent ef20f13 commit 96c2e5a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions HeapInspector/HINSPHeapStackDetailTableViewController.m
Expand Up @@ -31,6 +31,8 @@ @interface HINSPHeapStackDetailTableViewController ()
@implementation HINSPHeapStackDetailTableViewController
{
UITextView *_headerTextView;
UIFont *_boldFont;
UIFont *_regFont;
}

#pragma mark - View Life Cycle
Expand All @@ -40,6 +42,8 @@ - (void)viewDidLoad
[super viewDidLoad];

self.title = @"Object Inspector";
_boldFont = [UIFont boldSystemFontOfSize:12];
_regFont = [UIFont systemFontOfSize:12];

[self setupHeaderView];
[self prepareDataSource];
Expand Down Expand Up @@ -152,6 +156,11 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
NSString *item = self.dataSource[indexPath.row];
cell.textLabel.text = item;
cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
if ([item isEqualToString:kCellTitleReferenceHistory]) {
cell.textLabel.font = _boldFont;
} else {
cell.textLabel.font = _regFont;
}

return cell;
}
Expand Down

0 comments on commit 96c2e5a

Please sign in to comment.