Popover in UITableViewcell not coming immediately .
<p>i have a dynamic tableviewcontroller SideBarTableViewController.m/.h .<br>
Have a pop up view controller - popUpViewController.m/.h 
Have subclassed a cell of SideBarTableViewController  -> RegisterTableViewCell.m/.h and added a button outlet from the cell to it. 
Have connected the cell to popUpViewController in storyboard using "present As popover" segue and the segue is given identifier "popover". The anchor point in storyboard has been set to Tableview for now , changing it later in preparesegue .  </p>

<p>RegisterTableViewCell.h </p>

<pre><code>@property (weak, nonatomic) IBOutlet UIButton *PopoverAnchorButton; 
</code></pre>

<p>SideBarTableViewController.m  </p>

<pre><code>#import "RegisterTableViewCell.h"
 (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {

if([segue.identifier isEqualToString:@"popover"] &amp;&amp; segue.destinationViewController.popoverPresentationController){
    UIPopoverPresentationController *popController = segue.destinationViewController.popoverPresentationController;
    popController.sourceView = sender;
    RegisterTableViewCell *cell = [[RegisterTableViewCell alloc]init];
 segue.destinationViewController.popoverPresentationController.sourceRect = CGRectMake(cell.PopoverAnchorButton.frame.size.width/2, cell.PopoverAnchorButton.frame.size.height, 0, 0);
    popController.delegate = self;
    } 
}



-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {

NSString *cellIdentifier = [menuItems objectAtIndex:indexPath.row];

UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier forIndexPath:indexPath];



RegisterTableViewCell *regcell = [[RegisterTableViewCell alloc]init];

[regcell.PopoverAnchorButton addTarget:self action:@selector(PresentPopover:) forControlEvents:UIControlEventTouchUpInside];

// Configure the cell...



return cell;

}

-(void) PresentPopover:(UIButton *)sender

{

NSLog(@"present popover called ");

[self performSegueWithIdentifier:@"popover" sender:sender];

}
</code></pre>

<p>popUpViewController.m</p>

<pre><code>- (IBAction)closeview:(id)sender {

[self.view removeFromSuperview];

}
</code></pre>

<p>Problem: </p>

<p>The popup is displayed from the left end of the cell, but wat i see , there is a delay in popup presentation . Normally , first click in the cell, popup  comes up as expected ,<br>
second click -> little delay ,<br>
 third -> little more delay ... (delay not always increasing though, but fixed 6-7 seconds  )  </p>

<p>let the ipad be idle for say 6 seconds , and again click in the cell, popup shows immediately .  </p>

<p>double clicking(2 taps ) in the cell displays it immediately but with a warning  :</p>

<pre><code>2016-07-11 22:53:05.462 Player-app_03[1947:590814] Warning: Attempt to present &lt;UINavigationController: 0x125026400&gt;  on &lt;SideBarTableViewController: 0x124d258f0&gt; which is already presenting (null)
</code></pre>

<p>What is happening here ? i am clueless. Anybody please help. </p>