summaryrefslogtreecommitdiff
path: root/ios
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-11-01 04:38:09 +0100
committerTor Andersson <tor.andersson@artifex.com>2011-11-01 23:46:58 +0100
commit6ebc8af2d3764575ac49af5755770fe31f9a5b3e (patch)
tree55aa754f32a2272d884d6d3c993b23befab9258e /ios
parent1f3d5882ad5951e2b4a794e0ae885c5974df7e69 (diff)
downloadmupdf-6ebc8af2d3764575ac49af5755770fe31f9a5b3e.tar.xz
Use a smaller font for the table of contents.
Diffstat (limited to 'ios')
-rw-r--r--ios/main.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/ios/main.m b/ios/main.m
index a5e9a0a5..b25ff472 100644
--- a/ios/main.m
+++ b/ios/main.m
@@ -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;