Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
頻度やその他のデータを保持するテーブル ビューを備えたアプリを作成しました。行を選択して編集し、選択した行を削除せずに、選択した行のすぐ下の新しい行に新しい周波数情報を追加したいと思います。
コアデータを使用しています。UIBarButtonItem *saveButton メソッドを使用すると、すべて正常に動作します。しかし、それは行を置き換えるだけです。add も使用できますが、新しい行がテーブルビューの一番下に配置されます。
insertRowsAtIndexPaths:withRowAnimation:は行を配置します。cellForRowAtIndexPathに適切なデータを配置する方法を理解する必要があります