title: Warning: Attempt to present ModalTableViewController on MainTableViewController which is already presenting (null)
body: <p>I have a problem with a popover. If I tap on a cell I will load a popover to select more details. Everything works fine, but when I press my cell again I receive every time the following message:</p>
  
  <p>Warning: Attempt to present ModalTableViewController... on MainTableViewController... which is already presenting (null)</p>
  
  <p>If I tap on another cell I will not get this Warning. Only if a tap the same row again.</p>
  
  <p>I tried lots of things but I am not able to solve this problem. I load my popover with like this:</p>
  
  <pre><code>var popover: UIPopoverController!
  var popoverContent: ModalTableViewController!
  </code></pre>
  
  <p>and on my cell tap:</p>
  
  <pre><code>popoverContent = self.storyboard.instantiateViewControllerWithIdentifier("ModalTableViewController") as ModalTableViewController
  
  popoverContent.selectedQuestionID = indexPath!.row               
  popover = UIPopoverController(contentViewController: popoverContent)
  popover.delegate = self
  
  popover.presentPopoverFromRect(currentCell.LabelCellTitle.frame, inView: currentCell.LabelCellTitle.superview, permittedArrowDirections: UIPopoverArrowDirection.Left, animated: true)
  </code></pre>
  
  <p>And to dismiss</p>
  
  <pre><code>func popoverControllerDidDismissPopover(popoverController: UIPopoverController!) {
  
      popover.dismissPopoverAnimated(false) // just to check
  
      self.popover = nil
      self.popoverContent = nil
  
  }
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Edit:</p>
  
  <p>If I check with:</p>
  
  <pre><code>if(self.popoverContent == nil) {
  </code></pre>
  
  <p>before opening it, I'll find out that it's not nil when I tap the same cell again. </p>
  
  <p>Edit again:</p>
  
  <p>I have the same problem if I create it with a little different setup:</p>
  
  <p>Custom 1x1px Button. Connect popover with segue. On cell tap move button to cell and open popover.</p>
  
  <p>So there is no code for opening the popover, only with storyboard editor.</p>
  
  <p>I get the same error message (sometimes) just if I tap the same popover again.</p>