title: Passing indexPath of the tableView cell to the another controller
body: <p>I want to pass the <code>select row</code> as <code>indexPath</code>  to the another controller. for that i have write following code:</p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as UITableViewCell
  
      let indexPath = tableView.indexPathForSelectedRow();
  
      return cell
  }
  
  
  override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
      var secondController: SecondViewController = segue.destinationViewController as SecondViewController
      secondController.rowIndex.text = indexPath
  }
  </code></pre>
  
  <p>But my indexPath is nil. Why?</p>