更新时间:2023-10-31 13:35:28
致电时
[ticketTable reloadData];
重新加载所有数据,并再次初始化表
all your data reload and your table is initialized again
UITable的魔力在于重用一些分配的单元格(只是所需的最小单元格数:屏幕上一次可见的单元格),然后在滚动时应使用新的数据设置来重用它们,通常使用NSArray您的表格数据委托人...
UITable magic is in reuse of a few allocated cells (just the minimus number of cell required: the viewable cells in a time on screen) and then you should just reuse them with new data setting when you scroll, typically using NSArray in your table data delegate...
和:定义数量的地方?看来这是一个全局变量,而不是每个单元格都有一个变量.
and: where qty is defined? it seems it's a global variable, not one for every single cell...
您***阅读一些苹果示例代码或一些教程
you'd better to read some apple example code or some tutorial