macOS/iOS API解説

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

目次

UITableViewDataSource

UITableViewDataSourceプロトコル

INDEX>UIKit 準拠 NSObject フレームワーク /System/Library/Frameworks/UIKit.framework 使用可能 iPhoneOS2.0 定義 UITableView.h 概要 フレームワーク UIKit 参照 タスク テーブルビューの設定 – tableView:cellForRowAtIndexPath 必須メソッド – numberO…

tableView:titleForHeaderInSection:

セクションのヘッダタイトルを返します。 -(NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section 解説 セクションのヘッダタイトルを返します。 返り値 ( NSString * ) 引数 ( UITableView * )tableView ( NSInteger…

tableView:titleForFooterInSection:

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

-tableView:sectionForSectionIndexTitle:atIndex:

INDEX>UIKit>UITableViewDataSource テーブルビューの右側のインデックスリストを選択した際に呼び出されます。 -(NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title atIndex:(NSInteger)index 【限定品】プログ…

-tableView:numberOfRowsInSection:

INDEX>UIKit>UITableViewDataSource それぞれのセクションに項目がどれくらいあるのかを返します。 -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section 解説 それぞれのセクションに項目がどれくらいあるのかを返し…

tableView:moveRowAtIndexPath:toIndexPath:

テーブルビューで移動できるかどうか -(void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath 解説 (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPa…

tableView:commitEditingStyle:forRowAtIndexPath:

テーブルビューの編集が完了する前に呼び出されます。 -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath 解説 編集を確定しない場合はNOを返します。 …

tableView:cellForRowAtIndexPath:

INDEX>UIKit>UITableViewDataSource テーブルに表示するセルを返します。 -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 解説 返り値 ( UITableViewCell * ) 引数 ( UITableView * )tableView ( …

tableView:canMoveRowAtIndexPath:

セルが移動可能かどうか -(BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath 解説 (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:( *)indexPath 返り値 ( BOOL ) 引数 ( UITableView * )tableVi…

tableView:canEditRowAtIndexPath:

編集可能かどうか。表示されきったときに呼び出される。 -(BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath 解説 編集可能かどうか。表示されきったときに呼び出される。 返り値 ( BOOL ) 引数 ( UITableView * )t…

sectionIndexTitlesForTableView:

テーブルビューの右側に表示されるインデックスリストの実装 -(NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView 解説 テーブルビューの右側に表示されるインデックスリストの実装インデックスリストを触った場合 tableView:sectionForSe…

-numberOfSectionsInTableView:

INDEX>UIKit>UITableViewDataSource テーブルビューのセクションがいくつあるかを返します。 -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView 解説 テーブルビューのセクションがいくつあるかを返します。 返り値 ( NSInteger ) テーブル…