UITableView 在编辑模式下将单元格添加到底部
我试图让我的表格在表格底部添加一个单元格以添加单元格,我的表格处于删除模式,因此人们可以删除,但随后我需要它添加一个带有插入功能的单元格,该单元格将插入一个单元格。我收到错误消息说我的应用程序与 nsarray 不一致。我怎样才能做到这一点?
I'm trying to make my table add a cell at the bottom of the table for adding cells, my table is on delete mode, so people can delete, but then then i need it to add a cell with insert that will insert a cell. i get errors saying my app isn't consistent with the nsarray. how could i make this work?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
第 1 步覆盖 tableViewController 上的 setEditing 以插入或删除添加行
然后确保返回正确的行数
Step 1 override setEditing on your tableViewController to insert or delete the add row
Then ensure you are returning the right number of rows