mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-04-29 05:05:35 +08:00
Ability to increase padding between cell title and detail view
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
@@ -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 -
|
||||
|
||||
Reference in New Issue
Block a user