Convert NSInteger to NSIndexpath

Viewed 39349

Basically I am storing an index of an array in a NSInteger. I now need it as an NSIndexpath, I'm struggling to see and find a way to convert my NSInteger to NSIndexpath so I can reuse it.

4 Answers

Swift 3:

let indexPath = IndexPath(row: 0, section: 0)
Related