Reputation: 12884
I would like to store an NSIndexPath
an Array of NSDictionaries
for later to compare.
I know that I can do it by storing 2 numbers as 2 keys
NSNumber *selRow = [[NSNumber alloc] initWithInteger:indexPath.row];
NSNumber *selSection = [[NSNumber alloc] initWithInteger:indexPath.section];
But that way I couldn't filter the filter the array in one run.
Is there a way to store (and get back) the NSIndexPath
directly?
Thanks in advance.
Upvotes: 2
Views: 1206
Reputation: 25917
Why don't you store it directly? NSIndexPath
is an object, so it's ok. You can see on the documentation that inherits from NSObject
.
Upvotes: 4