macOS/iOS API解説

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

目次

UITableViewCellクラス

INDEX>UIKit>

apple

テーブルビューに表示する行のクラス
継承 UIView : UIResponder : NSObject
準拠 NSCoding
UIGestureRecognizerDelegate
NSCoding (UIView)
UIAppearance (UIView)
UIAppearanceContainer (UIView)
NSObject (NSObject)
フレームワーク /System/Library/Frameworks/UIKit.framework
使用可能 iOS 2.0以降
定義 UITableViewCell.h

概要

テーブルビューに表示する行のクラス

メソッドとプロパティ

UITableViewCellオブジェクトの初期化

– initWithStyle:reuseIdentifier

セルの再使用

reuseIdentifier property
– prepareForReuse

再定義内容の管理

textLabel property
detailTextLabel property
imageView property

セルオブジェクトのビューへのアクセス

contentView property
backgroundView property
selectedBackgroundView property
multipleSelectionBackgroundView property

アクセサリビューの管理

accessoryType property
accessoryView property
editingAccessoryType property
editingAccessoryView property

選択とハイライトの管理

selected property
selectionStyle property
– setSelected:animated
highlighted property
– setHighlighted:animated

セルの編集

editing property
– setEditing:animated
editingStyle property
showingDeleteConfirmation property
showsReorderControl property

インデントの管理

indentationLevel property
indentationWidth property
shouldIndentWhileEditing property
separatorInset property

非推奨となったメソッド

accessoryAction property Deprecated in iOS 3.0
editAction property Deprecated in iOS 3.0
font property Deprecated in iOS 3.0
hidesAccessoryWhenEditing property Deprecated in iOS 3.0
image property Deprecated in iOS 3.0
lineBreakMode property Deprecated in iOS 3.0
selectedImage property Deprecated in iOS 3.0
selectedTextColor property Deprecated in iOS 3.0
target property Deprecated in iOS 3.0
text property Deprecated in iOS 3.0
textAlignment property Deprecated in iOS 3.0
textColor property Deprecated in iOS 3.0
– initWithFrame:reuseIdentifier Deprecated in iOS 3.0

クラス

UITableViewCell

参照