UITableView Modo de edición
Yo tengoUITableView
y estoy tratando de cargarlo por defecto en modo de edición. El problema es cuando esta líneatable.editing=TRUE;
mis filas desaparecen, implementé estos métodos:
- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath
{
// Return NO if you do not want the specified item to be editable.
return YES;
}
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleDelete;
}
- (BOOL)tableView:(UITableView *)tableView shouldIndentWhileEditingRowAtIndexPath:(NSIndexPath *)indexPath
{
return NO;
}
pero sin suerte. ¿Qué tengo que hacer