Imは、tableviewの編集モードを発行しています。テーブルを編集モードに設定すると、右の編集フィールドの右側に行セルがインデントされます。私はこれが起こるのを止めたい。私はcell.shouldIndentWhileEditing = NOを設定しました。しかし、これは何も変わらない。UITableViewCell ShouldIndentWhenEditing Issues
このセルはプログラム上、オンザフライで構築されています。
static NSString *CellIdentifier = @"ListingCustomCell";
UITableViewCell *cell = (UITableViewCell *) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc]initWithFrame:CGRectMake(0, 0, tableView.frame.size.width, 34) reuseIdentifier:CellIdentifier];
}
cell.shouldIndentWhileEditing = NO;
//SETUP CELL FIELDS
//return cell;
何が間違っているのですか?
おかげで
このメソッドは実装されていません。私はそれを実装し、NOを返しましたが、それでも違いはありませんでしたか? – IPadHackAndSlash