Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MACloop

macrumors 6502
Original poster
May 18, 2009
393
0
Germany
Hello,
I have been trying out to use tableViews as navigation in an App. If I have a tableView and the user selects a cell a detailed view will be displayed. Which is the best way to send the data saved for a specific object to the detailed view? If I have a car object and this object has a brand and a color variable. Shall I from the tableView where the user clicks on the cell, set the proper labels or text in the detailed view? Or should I rather send the object to the detailed view in a method like
Code:
[theViewControllerObject sendObject:object];
and then use this object to fill the labels and the texts in the detaield view.

Thanks in advance!
MACloop
 

Galarina

macrumors member
Jun 27, 2009
97
0
I would advize to pass the car object to the detailedView. It's the cleanest solution.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.