قالب وردپرس درنا توس
Home / IOS Development / How to change positions of elements in a matrix with 1 when I remove an item from the list? : iOSProgramming

How to change positions of elements in a matrix with 1 when I remove an item from the list? : iOSProgramming



I have a list, List [“Milk”, “Eggs”, “Bread”]

If an item is already marked as done, I will remove it from the list when the view loads. However, when I remove the item in index 1, the loop continues and controls the item in index 2, even though the "bread" was moved to position 1 in the index.


Source link