-2

I'm using [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:k] withRowAnimation:UITableViewRowAnimationNone];, I examined I'm getting a valid value for k but still I'm getting -[NSIndexSet initWithIndexesInRange:]: Range {9223372036854775807, 1} exceeds maximum index value of NSNotFound - 1.

Nagesh
  • 157
  • 1
  • 2
  • 11

1 Answers1

-1

Try following code it may help you

NSRange range = NSMakeRange(0, 1);
NSIndexSet *section = [NSIndexSet indexSetWithIndexesInRange:range];                                     
[self.tableView reloadSections:section withRowAnimation:UITableViewRowAnimationNone];
Amit Jagesha シ
  • 1,048
  • 12
  • 19
  • Thanks for replaying but, I'm wondering the code remains the same can you explain why this will work. – Nagesh Jul 11 '16 at 05:45
  • Before giving negative rate and wear spec and read I just say tried it read bold text and i am not say that it will workd. – Amit Jagesha シ Jul 11 '16 at 07:28