0

I used SWTableViewCell a third-party library to implement the swipe the UITableviewcell to open two buttons(save and delete) and click on those particular actions will occur.

See the screen shot i attached enter image description here

When Swipe State is open and scroll the TableView then it crashes the app with message:

[SearchCell cell] scrollViewDidScroll message sent to deallocated instance

Help me how to solve this crash issue

thanks in advance,

Babul
  • 1,268
  • 2
  • 15
  • 42

2 Answers2

2

Don't know if you fixed this already but set the delegate to nil when deallocating.

Mark Molina
  • 5,057
  • 8
  • 41
  • 69
2

SWTableViewCell.m

Please change dealloc to this

- (void)dealloc
 {
    _cellScrollView.delegate = nil;
     [self removeOldTableViewPanObserver];
 }

Everything will be OK

Nam Vu
  • 5,669
  • 7
  • 58
  • 90