Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unexpected nil index path in _shouldShowMenuForCell

Does anyone know what is going on with this problem? My cell stop swiping because of this.

[Assert] Unexpected nil index path in _shouldShowMenuForCell:, this should never happen. Cell ; baseClass = UITableViewCell; frame = (0 97.5; 375 130); alpha = 0; hidden = YES; autoresize = W; gestureRecognizers = ; layer = >

Help !!!

like image 382
Piotr Avatar asked Sep 27 '17 07:09

Piotr


2 Answers

I change swiping method from gestureRecognizer to ScrollView and everything works perfect.

like image 74
Piotr Avatar answered Oct 26 '22 20:10

Piotr


If your cell is created by - [[[NSBundle mainBundle] loadNibNamed:nibName owner:self options:nil] lastObject];

AND using addSubview to display it. This problem will occur.

My solution is using "addSubview:cell.contentView" BUT NO "addSubview:cell"

like image 2
Cowboy Eric Avatar answered Oct 26 '22 20:10

Cowboy Eric