title: Get Cell position in UITableview
body: <p>I am trying to get position of cell in tableview. from this code i am getting cell position</p>
  
  <pre><code>int numberOfSections = [UITableView numberOfSections];
  int numberOfRows = 0;
  NSIndexPath *tempIndexPath = nil;
  UITableViewCell *tempCell = nil;
  for(int i=0;i&lt;numberOfSections;i++)
  {
       numberOfRows = [UITableView numberOfRowsInSection:i];
       for(int j=0;j&lt;numberOfRows;j++
       {
             tempIndexPath = [NSIndexPath indexPathForRow:j inSection:i];
             tempCell = [UITableView cellForRowAtIndexPath:tempIndexPath];
             NSLog("Y postion for cell at (Row = %d,Section = %d) is :%f",tempCell.frame.origin.y);
       }  
  }
  </code></pre>
  
  <p>it is calculating y axes of cell in tableview but my problem is i want to get the cell position in the visible area of tableview rect. ie if table view has size cgrectmake(0,0,200,500)
  and cell height is 100 pixels. so tableview will show 5 rows. if i scroll down and select 7th row. i will get its y axes 700. but the cell will be within (0,0,200,500) frame.
  How can I get cell location within this frame (0,0,200,500).</p>