iPhone:仅将UITableView的一部分置于“编辑”模式 [英] iPhone: Putting only one section of UITableView in Edit mode

查看:55
本文介绍了iPhone:仅将UITableView的一部分置于“编辑”模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设的UITableView中有三个部分。我想要一个处于编辑模式的部分。其余部分不处于编辑模式。

I have three sections in my hypothetical UITableView. I'd like one section that is in editing mode. The rest of the sections to not be in editing mode. Is this possible at all?

推荐答案

这真的不应该是一个谜,因为它在文档中有明确说明。只需使用数据源方法

This really shouldn't be a mystery, as it's spelled out clearly in the documentation. Simply use the datasource method

- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath

这篇关于iPhone:仅将UITableView的一部分置于“编辑”模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆