What is the crash message ? I was suggesting a possible problem, if you don't care, that's OK for me, no worry. But I have nothing to check if you don't check yourself first and answer to replies.Note that the code you used dates from 2018. It is already a bit old (at the time iOS 12 or 13). There is an interesting discussion here for negative row value: https://stackoverflow.com/questions/13585220/why-is-the-row-property-of-nsindexpath-a-signed-integer. Have a good day.
Topic:
UI Frameworks
SubTopic:
UIKit
Tags: