![] //根据角标,反推indexPath
- (NSIndexPath*)indexPathWithIndex:(NSInteger)index{
NSIntegersection =0;
NSIntegerrow =0;
for(inti =0; i<=self.nameSectionArray.count-1; i++) {
NSString*key =self.nameSectionArray[i];
NSArray* array =self.nameSectionDic[key];
NSIntegerarrayCount = array.count;
if(index <=arrayCount-1){
section = i;
row = index;
break;
}else{
index -= arrayCount;
}
}
return[NSIndexPathindexPathForRow:rowinSection:section];
}
网友评论