MGSwipeTableCell icon indicating copy to clipboard operation
MGSwipeTableCell copied to clipboard

crash when button action releases the viewController

Open k-nar opened this issue 9 years ago • 1 comments

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

k-nar avatar Mar 16 '15 12:03 k-nar

Got the same issue. But found that this issue had been fixed on commit c3eb5add552206d7b6cd4be6eb1900831ffff297 when fix issue #294 .

world000 avatar Nov 03 '17 13:11 world000