The title pretty much asks it all. I’ve been coming back and trying to implement this every few days, but I cant seem to get it to work. I’d assume the code to set the detailItem from launch goes in the viewDidLoad, but at this point I am clueless.
Any help is greatly appreciated.
–Tyler
You can use the
selectRowAtIndexPathdelegate:Of course, replace
[NSIndexPath indexPathForRow:0 inSection:0]with the section / row that you want to automatically set.You can either put this in your
viewDidLoadorviewWillAppear:delegate.Also, make sure that you define your
tblMyTable(or whatever you have named your table) in your header, hooked it up through Interface Builder (if your using a custom XIB), and use@synthesizein your .mAnd the
didSelectRowAtIndex:should be called when you use that method, so as long as your detailItem code is indidSelectRowAtIndex, you should be good.