【发布时间】:2012-08-29 22:01:00
【问题描述】:
我通过指定 indexPath 手动创建 tableViewCell(自定义)。由于某种原因,有时单元格会接收到单元格对象,有时它不会包含对象。我知道在指定的 indexPath 处存在一个单元格,但更多的原因是代码有时无法从中获取对象。有什么想法吗?
-(BOOL)checkRequiredValues {
NSIndexPath *cellIndexPath;
CheckoutCell *cell;
cellIndexPath = [NSIndexPath indexPathForRow:1 inSection:0];
cell = (CheckoutCell *)[self.tableView cellForRowAtIndexPath:cellIndexPath];
}
【问题讨论】:
标签: objective-c ios ipad uitableview