Does anyone know what is happening with this problem? Because of this, my cell stop.
[Assert] Unexpected nil index path in _shouldShowMenuForCell: this should never be. Cell; baseclass = UITableViewCell; frame = (0 97.5; 375 130); alpha = 0; hidden = YES; autoresize = W; gestureRecognizers =; layer =>
Reference!!!
I change the swiping method from gestureRecognizer to ScrollView and everything works fine.
If your cell is created - [[[NSBundle mainBundle] loadNibNamed: owner nibName: self options: nil] lastObject];
And using addSubview to display it. This problem will arise.
"addSubview: cell.contentView", "addSubview: cell"
I already found a solution even when creating a scroll cell using a gesture recognizer, in my case there is a problem ("Unexpected index path nil in _shouldShowMenuForCell: this should never happen.") Appeared due to this function:
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? { for subview in self.subviews.reversed() { if subview.frame.contains(point) { return subview } } return super.hitTest(point, with: event) }
tip: Working solution: Capturing strokes on a preview outside of its supervisor using hitTest: withEvent:
Source: https://habr.com/ru/post/1686454/More articles:Homebrew OSX Sierra No such PSQL file or directory postgres@9.5 - postgresqlRun multiple angular 4 applications with a common node js server (rendering) - angularКак настроить время загрузки дерева? - openerpswift 3.0 multiple choice with whole cell selection - iosOne-to-zero Relationships with Entity Framework Core 2.0 - c #How to get a storage key from my 3D plan scene id? - archilogicHow to set this button to the center of the x axis using css? - htmlНаблюдаемый против обещания для одиночных значений - javascriptPosting to the web api path as a string via swagger / postman - asp.net-coreWhy do we need a level of service? - springAll Articles