1
當我使用下面的代碼按鈕圖像消失在自定義單元格,同時檢查電池
[cell setAccessoryType:UITableViewCellAccessoryCheckmark];
在表中使用附件對號檢查單元格,然後我對細胞的按鈕,單擊擴展了分類別單元格然後按鈕的圖像消失。我使用下面的代碼在選定的單元格下插入新的單元格。
[FieldtableView beginUpdates];
for(int i=1;i<=cnt;i++)
{
NSIndexPath *pathforadd = [NSIndexPath indexPathForRow:i inSection:[sender tag]];
[FieldtableView insertRowsAtIndexPaths:[NSArray arrayWithObject:pathforadd] withRowAnimation:UITableViewRowAnimationFade];
}
[FieldtableView endUpdates];