我在 read.m 类中有数据。我创建了父视图控制器以供读取。所以,父视图是 home.m。在 home.mi 中,使用当前模式视图控制器获取零售商类。我想要通过 home.m 从 read.m 到retailer.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];
}