You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tableView.reloadData in folder.didSet conflicts with tableView.deleteRows or tableView.insertRows, so the app will crash on creating or deleting folders.
Two solutions:
Only one update strategy. Delete tableView.deleteRows and tableView.insertRows, or call tableView.reloadData() imperatively instead of auto call in folder.didSet.
Add a condition to tableView.reloadData() in folder.didSet. For example, add a updatingInteractive instance variable, set to true on start of deleteItem(item:) and insert(item:) methods, set to false on end.
Project: Recordings-controller-owned-networking*
The text was updated successfully, but these errors were encountered:
tableView.reloadData
infolder.didSet
conflicts withtableView.deleteRows
ortableView.insertRows
, so the app will crash on creating or deleting folders.Two solutions:
tableView.deleteRows
andtableView.insertRows
, or calltableView.reloadData()
imperatively instead of auto call infolder.didSet
.tableView.reloadData()
infolder.didSet
. For example, add aupdatingInteractive
instance variable, set totrue
on start ofdeleteItem(item:)
andinsert(item:)
methods, set tofalse
on end.Project: Recordings-controller-owned-networking*
The text was updated successfully, but these errors were encountered: