Closed novkostya closed 5 years ago
Getting the same issue with our users in iOS 13
Thanks for the info. I'll look into it soon.
Thank you! If it helps, here is an error message I get in the debugger:
objc[576]: Cannot form weak reference to instance (0x10806a800) of class UITableView. It is possible that this object was over-released, or is in the process of deallocation.
Getting same issues only on iOS 13
Managed to get temporary workaround
We can hide swipe buttons on visible cells while tableView is moving from superview so buttons will be hidden before dealloc
call on UITableView instance
public class MyTableViewSubclass: UITableView {
public override func willMove(toSuperview newSuperview: UIView?) {
super.willMove(toSuperview: newSuperview)
if newSuperview == nil {
visibleCells.forEach { (cell) in
if let swipeCell = cell as? MGSwipeTableCell {
swipeCell.hideSwipe(animated: false)
}
}
}
}
}
Previous workaround seems to be not good enough because it can lead to other crashes on iOS 13 https://forums.developer.apple.com/thread/117537
Anyone have any info on how this was reproducible? We are seeing a small number of crash reports from iOS 13 beta users, but haven't been able to repro ourselves. We're still on 1.6.7.
Anyone have any info on how this was reproducible? We are seeing a small number of crash reports from iOS 13 beta users, but haven't been able to repro ourselves. We're still on 1.6.7.
It happens when table view gets deallocated when there's a cell in swiped state. So try to
Fixed in 1.6.9
Our users report crashes on iOS 13 beta. See stacktrace below