tableView:willSelectRowAtIndexPath:
セルを選択しようとしている時に呼び出されます。
-(NSIndexPath *)tableView:(UITableView *)tableView
willSelectRowAtIndexPath:(NSIndexPath *)indexPath
- 出版社/メーカー: 自社プランド
- メディア: その他
- この商品を含むブログ (1件) を見る
解説
セルを選択しようとしている時に呼び出されます。
返り値
( NSIndexPath * )
引数
( UITableView * )tableView
( NSIndexPath * )indexPath
フレームワーク
UIKit
クラス
UITableViewDelegate
Instance Methods
使用可能
iPhone2.0
参照
例文
//選択しようとしているとき
- (NSIndexPath *)tableView:(UITableView *)tv willSelectRowAtIndexPath:(NSIndexPath *)indexPath {
// Only allow selection if editing.
NSLog(@"willSelectRowAtIndexPath %u",[indexPath indexAtPosition:1]);
return (self.editing) ? indexPath : nil;
}