Poszukuję zezwolenia na zmianę kolejności UITableViewCell
s i usuwam poprzez przesunięcie, aby usunąć, ale nie przez czerwone kółko usuwania.Włączanie przeciągania przy wyświetlaniu elementów sterujących odtwarzaniem w trybie 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;
}
Dodatkowo Próbowałem wyłączenie trybu edycji i wywoływania -[UITableViewCell setShowsReorderControl:YES]
bez powodzenia.
Image http://booleanmagic.com/uploads/ReorderNotDelete.png
Tak, jestem świadomy. Funkcja "konto linku" nie działa. Ścieżka najmniejszego oporu polegała na utworzeniu nowego konta i osieroceniu tymczasowego. – rpetrich