Ok, I'm trying to load a table with a header and with 2 items in the cell (the "regular" text label and the detailed text label). It's basically a calendar app and I'm pulling the data from a plist with the "month", "event", and "weekday" each in an array. Like so...
NSDictionary *calendar;
NSArray *month;
NSArray *event;
NSArray *weekday;
-------------------
I think this part is right....
NSString *path = [[NSBundle mainBundle] pathForResource:@"calendar"
ofType:@"plist"];
NSDictionary *dict = [[NSDictionary alloc]initWithContentsOfFile

ath];
self.calendar = dict;
[dict release];
NSArray *array = [[calendar allKeys] sortedArrayUsingSelector:
@selector(compare

];
self.month = array;
------------------------
This is where I know there's big problem...
- (UITableViewCell *)tableView

UITableView *)tableView cellForRowAtIndexPath

NSIndexPath *)indexPath {
NSUInteger section = [indexPath section];
NSUInteger row = [indexPath row];
NSString *key = [month objectAtIndex:section];
NSArray *eventSection = [calendar objectForKey:key];
NSString *key = [weekday objectAtIndex:section];
NSArray *daySection = [calendar objectForKey:key];
static NSString *SectionsTableIdentifier = @"SectionsTableIdentifier";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:SectionsTableIde ntifier];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:SectionsTableIdentifier] autorelease];
}
cell.textLabel.text = [eventSection objectAtIndex:row];
cell.detailTextLabel.text = [daySection objectForIndex:row];
return cell;
}