テーブルビューを作成しました。私の各行には削除ボタンがあります。これで、最初の行を削除すると、最後の行がもう一度テーブルビューに追加されます。
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath: (NSIndexPath *)indexPath
{
if(currentHTMLElement==@"1") {
static NSString *CellIdentifier=@"Cell";
UITableViewCell* cell=[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(cell == nil) {
cell = [[[UITableViewCell alloc]initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier]autorelease];
}
NSMutableDictionary *d = (NSMutableDictionary *) [arr objectAtIndex:indexPath.row];
cell.selectionStyle = UITableViewCellSelectionStyleNone;
retun cell;
}
}
各行にさらにいくつかのラベルがあります。また、テーブルビューをリロードします。