Ability to increase padding between cell title and detail view

This commit is contained in:
Jordan de Laune
2014-10-26 21:39:05 +00:00
parent 3020454ed5
commit b1d7d10a5f
2 changed files with 7 additions and 1 deletions

View File

@@ -86,6 +86,11 @@ extern CGFloat const RETableViewSectionFooterHeightAutomatic;
*/
@property (copy, readwrite, nonatomic) NSString *indexTitle;
/**
The width of padding between the cell title and cell detail view
*/
@property (assign, readwrite, nonatomic) CGFloat cellTitlePadding;
/**
Returns the width of the longest title in the section.

View File

@@ -76,6 +76,7 @@ CGFloat const RETableViewSectionFooterHeightAutomatic = DBL_MAX;
_mutableItems = [[NSMutableArray alloc] init];
_headerHeight = RETableViewSectionHeaderHeightAutomatic;
_footerHeight = RETableViewSectionFooterHeightAutomatic;
_cellTitlePadding = 5;
return self;
}
@@ -140,7 +141,7 @@ CGFloat const RETableViewSectionFooterHeightAutomatic = DBL_MAX;
width = MAX(width, size.width);
}
}
return width + 5.0;
return width + self.cellTitlePadding;
}
#pragma mark -