I have a simple section index for a table view that appears fine for the first time but then crashes if certain kinds of interaction happens that force a redraw of the section i
I discovered that the issue is in the function:
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView
There is something wrong with the section indexes algorithm after iOS 7.0, and Obviously it's a framework bug. I ended doing something like this:
- (NSArray *)sectionIndexTitlesForTableView:(UITableView *)tableView {
**if(IS_IOS7 || isSearching)
return nil;**
else
return [self.dictAllKeysAlphabetically allKeys];
}
This is an ugly patch which will remove the letters bar from right side of your screen, but at least your app won't crash.