Как показать индикатор раскрытия, в то время как ячейки находятся в режиме редактирования?

У меня есть UITableView, который может быть отредактирован. Я отображаю ячейки как таковые:

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

    static NSString *CellIdentifier = @"Cell";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
    if (cell == nil) {
        cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease];
        cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    }

    // Configure the cell...
    STWatchList *mySTWatchList;
    mySTWatchList = [items objectAtIndex:indexPath.row];

    cell.textLabel.text = mySTWatchList.watchListName;

    return cell;
}

Когда пользователь редактирует, я хотел бы показать индикатор раскрытия. Как я могу выполнить это?

20
задан Sheehan Alam 19 July 2010 в 17:15
поделиться

1 ответ

cell.editingAccessoryType = UITableViewCellAccessoryDisclosureIndicator;
55
ответ дан 29 November 2019 в 23:04
поделиться