【发布时间】:2011-11-09 13:07:06
【问题描述】:
将 myArray (NSMutableArray) 作为 dataSource 与事件
自定义表格部分是:
- (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section
{
customSections = [[NSMutableArray alloc] init];
//My custom sections
[customSections addObject:@"now"];
[customSections addObject:@"in this day"];
NSString *sectionText = [customSections objectAtIndex:section];
return sectionText;
}
做空它们的最佳做法是什么? 对于每个事件,我都有一个开始时间和结束时间
【问题讨论】:
标签: iphone uitableview nsmutablearray ios5 tableview