I have a problem with `indexPathForSelectedRow()`

I have 2 viewcontroller: 
tableview and view controller 

I want to move from tableview to another controller 

and I used func `prepareForSegue` but I have problem in `indexpathselectedrow()` 

This is issue for the problem:

> 
> **cannot invoke "indexpathforselectedRow" with no arguments**
> 
> 
> 

The Xcode is a last version 

```
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {

    if segue.identifier == "show"
    {
        let indexpath = tableView.indexPathForSelectedRow()
        let detailvc: fiveViewController = segue.destinationViewController as! fiveViewController

    }

}

```