Estoy buscando permitir el reordenamiento de UITableViewCell
sy borrar mediante deslizamiento para eliminar, pero no a través del círculo rojo de borrado.Habilitar deslizar para borrar mientras se muestran los controles de reorden en UITableView
- (void)loadView
{
[super loadView];
[table setEditing:YES animated:NO];
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (editingStyle == UITableViewCellEditingStyleDelete) {
// Perform delete here
}
}
- (void)tableView:(UITableView *)tableView moveRowAtIndexPath:(NSIndexPath *)fromIndexPath toIndexPath:(NSIndexPath *)toIndexPath
{
// Perform move here
}
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleDelete;
}
- (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath
{
return YES;
}
Además, he intentado desactivar el modo de edición y llamando -[UITableViewCell setShowsReorderControl:YES]
sin suerte.
Image http://booleanmagic.com/uploads/ReorderNotDelete.png
Sí, soy consciente. La función "cuenta de enlace" no funcionó. La ruta de menor resistencia era simplemente crear una nueva cuenta y huérfana la temporal. – rpetrich