私は次のコードを使用してテーブルビューから行を削除します。 行はdbから一度に削除されますが、テーブルビューからは削除されません。私は行tableviewを削除する必要がありますデータをrloadする必要があります... 任意のアイデア?テーブルreloadDataが動作しない
-(void) tableView:(UITableView *)tableView
commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.table beginUpdates];
if (editingStyle == UITableViewCellEditingStyleDelete)
{
Hadits *delHadit = [self.allBookMarks objectAtIndex:indexPath.row];
dbAccess *dbmethods = [[dbAccess alloc] init];
NSInteger delHaditid = delHadit.haditid;
[dbmethods deleteBookMark:delHaditid];
[dbmethods release];
}
[self.table reloadData];//its not working reload data...
[table endUpdates];
}
にはいその私のクラスのUITableViewの変数、およびnibファイルテーブルには、クラス変数テーブルに(引き渡し)を割り当てます.... – Haseeb