Move TableView Cells in Swift 5 (Xcode 11) | 2020

Move TableView Cells in Swift 5 (Xcode 11) | 2020

iOS Academy

4 года назад

12,106 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@parneetk03
@parneetk03 - 24.09.2022 19:10

Great video! How can we delete the items? I can swap them, but when I click on the minus icon on the left of the sort, nothing happens. Please explain.

Ответить
@senwhich
@senwhich - 31.07.2022 22:02

Hi, appreciate how clear way of explanation you are using. Would like to ask you two question. 1. in case I have to views - table and collection, after reordering the table cells how can I reflect the reordered array also in collection view? 2. how can I keep the reordered array/table cells also after adding a new item/table cell in the array?

Ответить
@jxz5046
@jxz5046 - 29.03.2022 02:13

Inside didTapSort:
table.isEditing = !table.isEditing;

Ответить
@shanq7373
@shanq7373 - 16.02.2022 11:21

Saved my homework, thanks a lot

Ответить
@akhtarabbas5760
@akhtarabbas5760 - 11.11.2021 16:14

thank you :)

Ответить
@bala_animeti
@bala_animeti - 03.11.2021 17:45

Is it possible to change the default reorder icon while editing?

Ответить
@gandalfgrey91
@gandalfgrey91 - 23.08.2021 01:55

how do you swap the index of core data entities?

Ответить
@vladwinter3246
@vladwinter3246 - 16.06.2021 11:13

Nice video, but how can I make my table delete elements?
I mean we have the edit button with red minuses once it is pressed, but when I swipe the element left and click "delete" - nothing happens
please help)

Ответить
@ukrainenews8247
@ukrainenews8247 - 08.06.2021 13:07

Would it be different for a table created in another view controller?

Ответить
@nileshjdarji
@nileshjdarji - 09.05.2021 03:12

This is great but when you come back to the app again the new order is not saved. Do you have a video to show the saving part? Thanks

Ответить
@fiazhussain1645
@fiazhussain1645 - 03.05.2021 10:55

Good Job Sir

Ответить
@user-zo8ne6rd1s
@user-zo8ne6rd1s - 20.04.2021 09:30

It’s wondering video^^ Please show me only program without storybord. I tried it but can’t

Ответить
@zainex007
@zainex007 - 16.03.2021 11:14

Great video! But I think using the swap method in moveRowAt is wrong. For example, you move first row after fourth row and the rows will be: second, third, fourth, first. But the array will be: fourth, second, third, first. Try to print the array in the console every time rows are moved. I would do something like this:
let removedElement = models.remove(at: sourceIndexPath.row)
models.insert(removedElement, at: destinationIndexPath.row)

Ответить
@bitsurfer0101
@bitsurfer0101 - 10.12.2020 23:38

can you change the name of the bar button (ex. done ) while it is being edited and then change it back to sort when it is done?

Ответить
@user-xv3lr6mb6g
@user-xv3lr6mb6g - 30.11.2020 14:24

Thank you a lot!

Ответить
@nelvinleivagarcia
@nelvinleivagarcia - 18.04.2020 16:08

Excelente video!

Ответить
@alifarhadi5704
@alifarhadi5704 - 06.04.2020 21:02

That's great. keep going man, I like the style of your video.

Ответить
@markme7092
@markme7092 - 06.04.2020 14:26

Hey Please make a video to Save & display time & date in UITableView Cell Core Data?

Ответить
@haroonmazhar5212
@haroonmazhar5212 - 06.04.2020 12:23

best

Ответить
@allaboutnaturesound6033
@allaboutnaturesound6033 - 06.04.2020 03:04

nice video

Ответить