title: UITableView indexed implementation with single NSArray
body: <p>Hi every one I am trying to use UITableView indexed one. I have done all implementations related to that using Two arrays first one is for data with strings, second array is index of alphabets. I am able to see the index in the right side of table view but when I am clicking on it, Tableview scrolling to top. Here is my code for UITableview methods </p>
  
  <pre><code>- (NSInteger)tableView:(UITableView *)tableView sectionForSectionIndexTitle:(NSString *)title  atIndex:(NSInteger)index
  {
      NSLog(@"index = %d, title = %@",index,title);
  
  
          NSUInteger row = 0;
          for(NSString *accountInfo in sortedDataArrayList)
          {
              NSLog(@"[accountInfo substringFromIndex:1] = %@",[accountInfo.accountName substringToIndex:1]);
              if([accountInfo length]&gt;0 &amp;&amp; [[accountInfo substringToIndex:1] caseInsensitiveCompare:title] == NSOrderedSame)
              {
  
                  NSLog(@"row = %d",row);
                  [tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:row inSection:0] atScrollPosition:UITableViewScrollPositionTop animated:YES];
                  break;
              }
              row++;
          }
      }
      return 0;
  }
  
  - (NSArray*)sectionIndexTitlesForTableView:(UITableView*)tableView
  {
      if(currentFilterMode == FilterModeAll )
      {
  
          return self.indexArray;
  
      }
      return nil;
  
  }
  </code></pre>
  
  <p>Any one please tell me where I am doing mistake. After clicking on the index button tableview scrolling to top only instead of as per the indexed position.</p>