tableView:titleForHeaderInSection:
セクションのヘッダタイトルを返します。
-(NSString *)tableView:(UITableView *)tableView
titleForHeaderInSection:(NSInteger)section
解説
セクションのヘッダタイトルを返します。
返り値
( NSString * )
引数
( UITableView * )tableView
( NSInteger )section
フレームワーク
UIKit
クラス
UITableViewDataSource
Instance Methods
使用可能
iPhone2.0
参照
例文
//セクションのタイトルヘッダ - (NSString *)tableView:(UITableView *)tv titleForHeaderInSection:(NSInteger)section { //セクション switch (section) { case 0: return @"セクション1"; case 1: return @"セクション2"; case 2: return @"セクション3"; } return nil; }