diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-11-01 04:38:09 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-11-01 23:46:58 +0100 |
commit | 6ebc8af2d3764575ac49af5755770fe31f9a5b3e (patch) | |
tree | 55aa754f32a2272d884d6d3c993b23befab9258e | |
parent | 1f3d5882ad5951e2b4a794e0ae885c5974df7e69 (diff) | |
download | mupdf-6ebc8af2d3764575ac49af5755770fe31f9a5b3e.tar.xz |
Use a smaller font for the table of contents.
-rw-r--r-- | ios/main.m | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -303,6 +303,11 @@ static UIImage *renderPage(pdf_xref *xref, int number, float width, float height return [titles count]; } +- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath +{ + return 28; +} + - (UITableViewCell*) tableView: (UITableView*)tableView cellForRowAtIndexPath: (NSIndexPath*)indexPath { static NSString *cellid = @"MuCellIdent"; @@ -311,6 +316,8 @@ static UIImage *renderPage(pdf_xref *xref, int number, float width, float height cell = [[[UITableViewCell alloc] initWithStyle: UITableViewCellStyleValue1 reuseIdentifier: cellid] autorelease]; NSString *title = [titles objectAtIndex: [indexPath row]]; NSString *page = [pages objectAtIndex: [indexPath row]]; + [[cell textLabel] setFont: [UIFont systemFontOfSize: 16]]; + [[cell detailTextLabel] setFont: [UIFont systemFontOfSize: 16]]; [[cell textLabel] setText: title]; [[cell detailTextLabel] setText: [NSString stringWithFormat: @"%d", [page intValue]+1]]; return cell; |