Tag: multipleselection

自定义UITableViewCell,UITableView并允许MultipleSelectionDuringEditing

我在使用iOS 5新function在编辑模式下select多个单元时遇到问题。 应用程序结构如下: -> UIViewController —> UITableView —-> CustomUITableViewCell UIViewController是UITableView的委托和数据源(我使用的UIViewController而不是UITableViewController由于要求的原因,我不能改变它)。 单元格像下面的代码一样被加载到UITableView 。 – (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)indexPath { CustomTableViewCell *cell = (CustomTableViewCell*)[tv dequeueReusableCellWithIdentifier:kCellTableIdentifier]; if (cell == nil) { [[NSBundle mainBundle] loadNibNamed:@"CustomTableViewCellXib" owner:self options:nil]; cell = self.customTableViewCellOutlet; cell.selectionStyle = UITableViewCellSelectionStyleNone; } // configure the cell with data [self configureCell:cell atIndexPath:indexPath]; return cell; } 单元接口已经从xib文件创build。 特别是,我创build了一个新的xib文件,其中superview由一个UITableViewCell元素组成。 […]