すべてのオブジェクトを表示するテーブル ビューがあり、オブジェクトを削除できます。NSMutableArray からオブジェクトを編集し、テーブル データを保存して再ロードできるように、それを取得する必要があります。
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
AssignmentInfo *ai = [self.alist objectAtIndex:indexPath.row];
UILabel *classname = (UILabel *)[cell viewWithTag:1];
UILabel *assignementText = (UILabel *)[cell viewWithTag:2];
UILabel *date = (UILabel *)[cell viewWithTag:3];
classname.text = ai.className;
assignementText.text = ai.assignmentTitle;
date.text = ai.dateTimeString;
// Configure the cell...
return cell;
}
必要に応じて、プロジェクト全体へのリンクを次に示します。