mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-01-11 20:00:30 +01:00
iOS 13 UITableViewAlertForLayoutOutsideViewHierarchy Warning #306
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tosbaha on GitHub (Jan 10, 2020).
I was using
ListMonitordelegate to update the tablesStarting with iOS 13, I started to get following warning on the console. When I put a symbolic breakpoint as the warning says I see that it's generated in
didInsertObjectdelegate call.@JohnEstropia commented on GitHub (Jan 11, 2020):
It's as the error says, you have events happening before the UITableView was added to the view. You can try calling
ListMonitor.addObserver()only after your tableView is added to the view (usuallyviewDidLoad)@tosbaha commented on GitHub (Jan 11, 2020):
The thing is, I am adding
Storage.kargos.addObserver(self)in myviewDidLoad. My Tableview is added toViewControllervia storyboard. It is a classic Master Detail View application. I add new object in DetailView and callself?.navigationController?.popViewController(animated: true)and I get above warning.