Hi all
I have a table view and when a user selects a cell I want to log a unique id. I thought I could use the index but the numbers are not sequential (I.e. 1,4,5,9,etc). Is there a way of defining a custom index or ID for a cell?
So I have the following cells in a table:
dog cat fish
the above cells have ids as below
2 dog 4 cat 8 fish
is there a way that when a user touches the fish cell it will return 8?
Indexpath.row would return 2 and I need 8. So is there a custom propertie I can set for each cell?