gpt4 book ai didi

iphone - 单元格处于编辑模式时如何显示披露指示符?

转载 作者:太空狗 更新时间:2023-10-30 03:13:18 25 4
gpt4 key购买 nike

我有一个可以编辑的 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;
}

当用户编辑时,我想显示披露指示器。我怎样才能做到这一点?

最佳答案

cell.editingAccessoryType = UITableViewCellAccessoryDisclosureIndicator;

关于iphone - 单元格处于编辑模式时如何显示披露指示符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3283298/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com