質問

私の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:で)テーブルビューセルを作成し、

accessoryTypeUITableViewCellAccessoryNoneeditingAccessoryTypeプロパティにUITableViewCellAccessoryDisclosureIndicatorプロパティを設定します。

あなたは代わりに非推奨tableView:accessoryTypeForRowWithIndexPath:方法を実装するのでこれを行うます。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top