MGSwipeTableCell
MGSwipeTableCell copied to clipboard
crash when button action releases the viewController
I have a viewController hierarchy like this
viewControllerContainer
I__childViewController1
childViewController1 contains UITableView with MGSwipeTableCells
in the MGSwipe Button action I do [viewControllerContainer performSegueWithIdentifier:] which replaces childViewController1 with childViewController2 so the button action causes [childViewController1 dealloc] [MGSwipeTableCell willMoveToSuperview:nil] [MGSwipeTableCell hideSwipeOverlayIfNeeded] [MGSwipeTableCell parentTable] _cachedParentTable = (UITableView*) view;
crash on objc_storeWeak
I think that at this stage the tableview is being deallocated and assigning it to a __weak variable causes a crash. when I remove the __weak qualifier for _cachedParentTable it works but I guess it will cause some leaks
Got the same issue. But found that this issue had been fixed on commit c3eb5add552206d7b6cd4be6eb1900831ffff297 when fix issue #294 .