macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

tableView:titleForFooterInSection:

テーブルビューのセクションのフッタタイトルを返します。
-(NSString *)tableView:(UITableView *)tableView
                titleForFooterInSection:(NSInteger)section

解説

テーブルビューのセクションのフッタタイトルを返します。

返り値

( NSString * )

引数

( UITableView * )tableView
( NSInteger )section

クラス

UITableViewDataSource

Instance Methods

使用可能

iPhone2.0

参照

例文

//セクションのタイトルフッタ

  • (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInteger)section {

switch (section) {
case 0: return @"フッタ1";
case 1: return @"フッタ2";
case 2: return @"フッタ3";
}

return nil;

}