私は問題で立ち往生しています.5行のuitableviewがあります。ユーザーが1行を選択すると、タップされた行の真下に新しい行が作成/挿入され、アニメーションが表示されます(セクションの非表示/非表示で見たように) )、新しく挿入された行をタップすると削除されます。
私は試してみましたが、それは言う
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid
update: invalid number of rows in section 0. The number of rows contained in an existing section
after the update (6) must be equal to the number of rows contained in that section before the update
(5), plus or minus the number of rows inserted or deleted from that section (0 inserted, 0 deleted).'
この機能を実現する他の方法は何ですか?前もって感謝します。