-numberOfSectionsInTableView:
INDEX>UIKit>UITableViewDataSource
テーブルビューのセクションがいくつあるかを返します。
-(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
解説
テーブルビューのセクションがいくつあるかを返します。
返り値
( NSInteger )
テーブルビューのセクションがいくつあるかを返す。
引数
( UITableView * )tableView
テーブルビュー
フレームワーク
UIKit
クラス
UITableViewDataSource
Instance Methods
使用可能
iPhone2.0
参照
例文
//セクションがいくつあるか - (NSInteger)numberOfSectionsInTableView:(UITableView *)tv { // return 5; }