0
爲什麼heightForHeaderInSection和heightForFooterInSection在iOS 4.3中不起作用,它在5.0中起作用?爲什麼heightForHeaderInSection在iOS 4.3中不起作用?
-(CGFloat)tableView:(UITableView*)tableView heightForHeaderInSection:(NSInteger)section
{
if (section == 0) {
return 10.0;
}
return (tableView.sectionHeaderHeight - 20);
}
-(CGFloat)tableView:(UITableView*)tableView heightForFooterInSection:(NSInteger)section
{
if (section == ([self.optionsArray count] - 1)) {
return 15.0;
}
return (tableView.sectionFooterHeight - 20);
}
+1完美正確,重點突出。 – Till 2012-04-06 20:43:20