Yet another question
I get the impression the didSelectRowAtIndexPath is not being used in a splitViewController. I passed in following code in the didSelectRowAtIndexPath. cannot understand why the sender isn't passing the indexPath in following code.
Then I tried to println the value of sender in prepareForSegue.
While debugging I'm not seeing any trace of the println("\(indexPath) is now "). Moreover the println("sender containg \(sender)") yields Optional(<UITableViewCell: 0x7ae8dd50; frame = (0 291; 320 44); text = ''; autoresize = W; layer = <CALayer: 0x7ae8df10>>) containing
What am I missing?
I get the impression the didSelectRowAtIndexPath is not being used in a splitViewController. I passed in following code in the didSelectRowAtIndexPath. cannot understand why the sender isn't passing the indexPath in following code.
Code:
override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
println("\(indexPath) is now ")
self.performSegueWithIdentifier("showDetailSegue", sender: indexPath)
}
Then I tried to println the value of sender in prepareForSegue.
Code:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
println("sender containg \(sender)")
While debugging I'm not seeing any trace of the println("\(indexPath) is now "). Moreover the println("sender containg \(sender)") yields Optional(<UITableViewCell: 0x7ae8dd50; frame = (0 291; 320 44); text = ''; autoresize = W; layer = <CALayer: 0x7ae8df10>>) containing
What am I missing?