我有一个主屏幕。在主屏幕上我有一个按钮。如果用户点击按钮需要导航幻灯片菜单..我需要将一些数组值从主屏幕传递到幻灯片菜单屏幕..我已经写了这样的代码。但导航不应该工作..请帮助我。
-(IBAction)buttonAction:(id)sender{
NSString *mode = [[modeDict valueForKey:@"params"] valueForKey:@"PatientName"];
patientName = mode;
NSLog(@"Patient Name is:%@",patientName);
NSString *patientId = [[modeDict valueForKey:@"params"]valueForKey:@"PatientId"];
patID = patientId;
patName = patientName;
patentID = patID;
[(UINavigationController *)[ClassObjects sharedCenter].sWRevealViewController.rearViewController.presentedViewController dismissViewControllerAnimated:YES completion:nil];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main_iPhone" bundle:nil];
[ClassObjects sharedCenter].showBack = TRUE;
MenuViewController *menuController = [storyboard instantiateViewControllerWithIdentifier:@"menuViewController"];
menuController.patId=patentID;
menuController.patientName = patName;
[[ClassObjects sharedCenter] setMenuViewController:menuController];
[(UINavigationController *)[ClassObjects sharedCenter].sWRevealViewController.rearViewController popToViewController:[ClassObjects sharedCenter].menuViewController animated:YES];
}