title: call the standard segue by tapping a button
body: <p>i've a UITableView with two Columns: a text colomn and an image</p>
  
  <p><a href="https://i.stack.imgur.com/KLlRw.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KLlRw.png" alt="enter image description here"></a></p>
  
  <p>for the textColumn on the left, i use a standarard segue, everytehing is fine...</p>
  
  <p>Now i want to implement the <strong>same action</strong>, when the right button is tapped</p>
  
  <p>i tried it with a new segue <em>imageDisplay</em> for the right (image) column</p>
  
  <pre><code>    let tapRecognizerImage = UITapGestureRecognizer(target: self, action: Selector("imageAction:"))
      cell.imageButton.addGestureRecognizer(tapRecognizerImage)
  
  }
  
  func imageAction(sender: UITapGestureRecognizer) {
      performSegueWithIdentifier("imageDisplay", sender: self)
  }
  override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
      if segue.identifier == "showDetail" {
          let indexPath:NSIndexPath = self.tableView.indexPathForSelectedRow!
          let controller = segue.destinationViewController as! DetailViewController
          controller.kategorie = self.fetchedResultsController.objectAtIndexPath(indexPath) as! Kategorien
      } else if segue.identifier == "imageDisplay" {
          let indexPath : NSIndexPath = self.tableView.indexPathForSelectedRow!
          let controller = segue.destinationViewController as! DetailViewController
          controller.kategorie = self.fetchedResultsController.objectAtIndexPath(indexPath) as! Kategorien
      }
  }
  </code></pre>
  
  <p>Now in </p>
  
  <pre><code> override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  </code></pre>
  
  <p>i get the error </p>
  
  <p>fatal error: unexpectedly found nil while unwrapping an Optional value</p>
  
  <p>This is, cause self.tableView.indexPathForSelectedRow! is nil!</p>
  
  <p>Perhaps, there´s a much simpier way ro resolve this???</p>