我在表视图中显示了以下数据
// declaration of Array
NSMutableArray *listOfItems;
//Initialize the array.
listOfItems = [[NSMutableArray alloc] init];
// Adding Item to array
[listOfItems addObject:[object description]];
// Populating tableView with Array
NSString *cellValue = [listOfItems objectAtIndex:[indexPath row]];
这表明 :
2012-08-10 07:52:39 +0000
2012-08-10 07:56:46 +0000
2012-08-10 07:57:01 +0000
2012-08-13 02:14:02 +0000
2012-08-13 02:20:29 +0000
2012-08-10 07:56:46 +0000
2012-08-14 08:44:33 +0000
现在我需要有一个分段表视图,以便最终结果应该是这样的
标题
- 2012-08-10
价值观
- 2012-08-10 07:52:39 +0000
- 2012-08-10 07:56:46 +0000
- 2012-08-10 07:57:01 +0000
- 2012-08-10 07:56:46 +0000
标题
- 2012-08-13
价值观
- 2012-08-13 02:14:02 +0000
2012-08-13 02:20:29 +0000
标题 2012-08-14
价值观
- 2012-08-14 08:44:33 +0000
即每天的标题和每个部分中每天的不同值我该怎么做?