title: How to Fetch UIPopOver Selected row text
body: <p>I am new to iPhone developer,</p>
  
  <p>In my application when i click on a button popover appears.</p>
  
  <p>what i want to do is, when i select any row in popover that cell should marked with right arrow image like:</p>
  
  <p><code>cell.accessoryType = UITableViewCellAccessoryCheckmark;</code></p>
  
  <p>and i want to fetch text of that selected row.</p>
  
  <p><strong>Inshort</strong> i want to implement checkbox in my popover, if 5 rows are selected then text of that 5 rows i want to fetch and store it in array.</p>
  
  <p><em>Here is my code:</em></p>
  
  <pre><code>-(void)btnClicked{
      UIViewController* popoverContent = [[UIViewController alloc]init];
      UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(110, 0, 500, 4)];
  
      UITableView *table = [[UITableView alloc]initWithFrame:CGRectMake(0, 0, 250, 665) style:UITableViewStylePlain];
  
      [table setDelegate:(id&lt;UITableViewDelegate&gt;)self]; 
      [table setDataSource:(id&lt;UITableViewDataSource&gt;)self]; 
       [self.view addSubview:table];
      [table release];
  
      [popoverView addSubview:table];
      popoverContent.view = popoverView;
      popoverContent.contentSizeForViewInPopover = CGSizeMake(250, 600);
      self.popoverController = [[UIPopoverController alloc]
                                initWithContentViewController:popoverContent];
  
      [self.popoverController  presentPopoverFromRect:CGRectMake(100,0, 535, 35) 
                                               inView:self.view permittedArrowDirections:UIPopoverArrowDirectionRight animated:YES];
  
  
      [popoverView release];
      [popoverContent release];
  } 
  </code></pre>
  
  <p>After this i am passing my array to UITableView.</p>
  
  <p><strong>Thanks In Advance !</strong></p>