I have got an tableView
, so when the cell is tapped it diverts to a DetailViewController. But it doesn´t have any data in it, such as images or text. How do I pass this data to my DetailView?
Code for controllers:
.h file
@interface Sushi : NSObject { IBOutlet UILabel *sushiDescription; IBOutlet UIImageView *sushiPicture; }
@property (nonatomic, retain) IBOutlet UILabel *sushiDescription; @property (nonatomic, retain) IBOutlet UIImageView *sushiPicture;
@end
.m file
@implementation Sushi
@synthesize sushiDescription, sushiPicture;
-(void)dealloc { [sushiDescription release]; [sushiPicture release]; [super dealloc]; }
@end