2017-07-03 49 views
-1

我收到此错误信息的行数无效,我想不出做什么或如何调试:无效更新:在第

“无效更新:在第1行的无效数。更新(7)后现有节中包含的行数必须等于更新前(7)节中包含的行数,加上或减去从该节插入或删除的行数(0插入,删除1个),加上或减去移入或移出该部分的行数(移入0,移出0)。

我在我的表中有3个部分。下面是什么修改我的数据源之前,每个部分的行数发生了:

// Check current data source 
date source for section 0: 1 items 
data source for section 1: 8 items 
data source for section 2: 8 items 

sections count: 3 
section 0 1 rows 
section 1 8 rows 
section 2 8 rows 

这里有什么打印出来后,我从第1节中删除行,我想将它移动到第2节:

// Updated my date source 
date source for section 0: 1 items 
data source for section 1: 7 items 
data source for section 2: 9 items 

sections count: 3 
section 0 1 rows 
section 1 7 rows 
section 2 9 rows 

// Then the crash message happen 

请帮忙。谢谢。

+2

我们需要看到你的代码,你更新你的部分,只能用这种方式很难帮助 –

回答