2010年6月11日金曜日

UITableView の editingモードで左側の削除アイコンを消す

このエントリーをブックマークに追加 このエントリーを含むはてなブックマーク
これを

こうする

UITableViewDelegate の2つのメソッドを実装すれば良い。


- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView
 editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleNone;
}
- (BOOL)tableView:(UITableView *)tableView
 shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath
{
return NO;
}

0 件のコメント:

コメントを投稿