UITableViewクラス
テーブルビュークラス
継承 | UIScrollView : UIView : UIResponder : NSObject |
準拠 | NSCoding |
NSCoding (UIScrollView) | |
NSCoding (UIView) | |
NSObject (NSObject) | |
フレームワーク | /System/Library/Frameworks/UIKit.framework |
使用可能 | iPhoneOS2.0 |
定義 | UITableView.h |
概要
テーブルビューのクラスです。縦方向のリスト表示を行います。
メソッドとプロパティ
UITableView オブジェクトの初期化
テーブルビューの設定
– dequeueReusableCellWithIdentifier
style property
– numberOfRowsInSection
– numberOfSections
rowHeight property
separatorStyle property
separatorColor property
tableHeaderView property
tableFooterView property
sectionHeaderHeight property
sectionFooterHeight property
sectionIndexMinimumDisplayRowCount property
セルとセクションへのアクセス
– cellForRowAtIndexPath
– indexPathForCell
– indexPathForRowAtPoint
– indexPathsForRowsInRect
– visibleCells
– indexPathsForVisibleRows
Table Viewのスクロール
– scrollToRowAtIndexPath:atScrollPosition:animated
– scrollToNearestSelectedRowAtScrollPosition:animated
選択の管理
– indexPathForSelectedRow
– selectRowAtIndexPath:animated:scrollPosition
– deselectRowAtIndexPath:animated
allowsSelection property
allowsSelectionDuringEditing property
セルの挿入と削除
– beginUpdates
– endUpdates
– insertRowsAtIndexPaths:withRowAnimation
– deleteRowsAtIndexPaths:withRowAnimation
– insertSections:withRowAnimation
– deleteSections:withRowAnimation
テーブルセルの編集の管理
editing property
– setEditing:animated
Table Viewのリロード
– reloadData
– reloadRowsAtIndexPaths:withRowAnimation
– reloadSections:withRowAnimation
– reloadSectionIndexTitles
Table Viewの描画エリアへのアクセス
– rectForSection
– rectForRowAtIndexPath
– rectForFooterInSection
– rectForHeaderInSection
デリゲートとデータソースの管理
dataSource property
delegate property