I have data in read.m class. i created parent view controller for read. so,parent view is home.m. in home.m i used present modal view controller for get retailer class. i want data from read.m to retailer.m through the home.m.
read.m
-(void)requestFromtblViews:(id)navigation forIndex:(int)index forText:(NSString *)text withDBdata:(NSArray *)DBdata{
[DBdata objectAtIndex:index];
}
-(void)showRetailerInfo
{
//NSLog(@"show retailer Information is....");
[self.ReadViewContent GetshowRetailerInfo:self];
}
home.m
-(void)GetshowRetailerInfo:(id)currentview;
{
// NSLog(@"get retailer info....");
Retailer_Info = [[RetailerInfoViewController alloc]initWithNibName:@"RetailerInfoViewController" bundle:[NSBundle mainBundle]];
Retailer_Info.view.frame = CGRectMake(0, 0, 320, 480);
[Retailer_Info loadDefaultView];
[self presentViewController:Retailer_Info animated:YES completion:nil];
[Retailer_Info release];
}