Is there a better way than what is proposed here to create a one-to-one mapping between an table view cell's NSIndexPath
and a unique NSUInteger
or int
, in order to create a unique tag
property value for a widget in the cell (a UIProgressView
)?
The link adds methods through a UIKit
category extension that converts between NSIndexPath
and int
, but they only work for less than a certain number of rows.
Granted, I may not run into that limit, but I'm wondering if there is a mapping that someone has come up with that can be guaranteed to work for any number of rows.