I'm now checking in my app if a xml file contains more than 1 file if not i would like to push the viewcontroller automatically to an other viewcontroller.
i'm now doing this and it works BUT!
UIViewController *rootController = [[ViewControllerOne alloc] initWithNibName:@"ViewControllerOne" bundle:nil];
navigationController = [[UINavigationController alloc] initWithRootViewController:rootController];
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
[self.window addSubview:navigationController.view];
[self.window makeKeyAndVisible];
i need to send data from the first viewcontroller to the one i'm pushing to (ViewControllerOne) normally to do this i'm doing:
ViewControllerthree *Controller = [[ViewControllerthree alloc] initWithNibName:@"ViewControllerthree" bundle:[NSBundle mainBundle]];
Controller.Title = [item objectForKey:@"Title"];
[self.navigationController pushViewController:Controller animated:YES];
Controller = nil;
I want to combinate this code so i can 'redirect' the controller if it contains two things in the ViewController, it needs to push it without a backbutton showing up in the viewcontroller i'm pushing data to