UICollectionViewを使うのはどうでしょうか?
時間割
月 国語,数学,理科,社会,英語
火 体育,体育,英語,数学,国語,理科
水 英語,数学,理科,社会,国語
木 国語,数学,音楽,音楽,社会,英語
金 英語,数学,美術,美術,国語,LHR
lang
1
2NSArray* timeTable = [NSArray arrayWithObjects:
3 [NSArray arrayWithObjects: @"月",@"国語",@"数学",@"理科",@"社会",@"英語"],
4 [NSArray arrayWithObjects: @"火",@"体育",@"体育",@"英語",@"数学",@"国語",@"理科"],
5 [NSArray arrayWithObjects: @"水",@"英語",@"数学",@"理科",@"社会",@"国語"],
6 [NSArray arrayWithObjects: @"木",@"国語",@"数学",@"音楽",@"音楽",@"社会",@"英語"],
7 [NSArray arrayWithObjects: @"金",@"英語",@"数学",@"美術",@"美術",@"国語",@"LHR"]];
8
9- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView {
10 return [timeTable count];
11}
12
13- (NSInteger)collectionView:(UICollectionView *)collectionView
14 numberOfItemsInSection:(NSInteger)section {
15 return [[timeTable objectoAtIndex:section] count];
16}
17
18- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
19 cellForItemAtIndexPath:(NSIndexPath *)indexPath {
20 UICollectionViewCell *cell = [self.collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
21 cell.title.text = [[timeTable objectAtIndex: indexPath.section] objectAtIndex: indexPath.row];
22 return cell;
23}
ざっくりですがこんな感じ。
そらで書いたので動くかどうかはわかりません。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。