次のデータがテーブル ビューに表示されています。
// 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
つまり、各セクションの各日のヘッダーと各日の異なる値どうすればよいですか?