title: How to set positions of Image View to the Center of UITableViewCell in iPhone
body: <p>I have tableView with Indicator but when i click on button it show smal popwindow image i want that image should be aligned with cell if clicked cell is at the top then popup should show at top if cell clciked is middel then according to that.</p>
  
  <p>Right now i have fixed on screen at one positions.</p>
  
  <p>I want to make like normal ipad app when you press any cell button addtoFave then popup with buttons is alligned with that cell any idea how to get this done.</p>
  
  <p>Here is my current code:</p>
  
  <pre><code>- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  
      NSLog(@"ContentID %@",contentID);
  
      CustomCell *cell  = (CustomCell *) [tblSimpleTable cellForRowAtIndexPath:indexPath];
  
      UIImageView *imgView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 312, 105)];
      imgView.frame = CGRectMake((cell.frame.size.width/2)-(imgView.frame.size.width/2),  (cell.frame.size.height/2)-(imgView.frame.size.height/2), 312, 105);
  
      imgView.image=[UIImage imageNamed:@"popupj.png"];
  
      [cell addSubview:imgView];
  
  }   
  </code></pre>
  
  <p>but this shows image on cell one not for all when i click when i click on other cell this image is shown on first cell only i want that which cell selected this should be shown to that cell.</p>