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
Use below methods of NSIndexPath class.
+ (id)indexPathWithIndex:(NSUInteger)index;
+ (id)indexPathWithIndexes:(NSUInteger *)indexes length:(NSUInteger)length;
- (id)initWithIndex:(NSUInteger)index
Use as below and also Don't forget to release myIndexPath object after using.
NSIndexPath *myIndexPath = [[NSIndexPath alloc] initWithIndex:[myIntObj intValue]];