iphone objective-cの興味深い問題をアsetEditing
-
23-09-2019 - |
質問
私のDetailViewControllerいのコード
更新x2
これは私の setEditing
- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
[super setEditing:editing animated:animated];
[tableView setEditing:editing animated:YES]; //this line was added to force editing Mode
....
私のdetailViewController送信したいtableViewのマジック/その"登録"編集モード"の付属品があまりないと思いましたの削除ボタンを押します。かのビーチに位置してライン [tableView setEditing:editing animated:YES];
, いったいこの作品に同一の物はない。
解決
あなたは間違いなく、この問題を解決する必要があります。
あなたは(tableView:cellForRowAtIndexPath:
で)テーブルビューセルを作成し、、accessoryType
とUITableViewCellAccessoryNone
にeditingAccessoryType
プロパティにUITableViewCellAccessoryDisclosureIndicator
プロパティを設定します。
あなたは代わりに非推奨tableView:accessoryTypeForRowWithIndexPath:
方法を実装するのでこれを行うます。
所属していません StackOverflow