From 993afe4789ab6cb46a3d8fce3f580c0d03e45756 Mon Sep 17 00:00:00 2001 From: Roman Efimov Date: Tue, 18 Jun 2013 11:18:38 -0500 Subject: [PATCH] Formatting fix --- RETableViewManager/RETableViewManager.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RETableViewManager/RETableViewManager.m b/RETableViewManager/RETableViewManager.m index 5ed77a8..19b5fa5 100644 --- a/RETableViewManager/RETableViewManager.m +++ b/RETableViewManager/RETableViewManager.m @@ -121,8 +121,7 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)sectionIndex { - RETableViewSection *section = [_sections objectAtIndex:sectionIndex]; - return section.items.count; + return ((RETableViewSection *)[_sections objectAtIndex:sectionIndex]).items.count; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath @@ -154,6 +153,7 @@ if ([item isKindOfClass:[RETableViewItem class]]) cell.detailTextLabel.text = ((RETableViewItem *)item).detailLabelText; + [cell cellWillAppear]; if ([_delegate respondsToSelector:@selector(tableView:styleCell:atIndexPath:)])