Hi, Im currently making an application that will at the end will use several different views to display information.
I am using a UITabBarController that I have defined in my appDelegate header file which is used to switch between a couple of main views. I also have a navigation bar on each view that can have buttons added to them like "edit" "add" etc, I am using these buttons to load "sub views" of the current main view and also loading the main views when user is in a subview.
(hope this makes sense.)
I am loading my sub views with the Add button that is connected to a method that looks like this.
that opens the Query view that the user used to make their search query.
Where I get lost is that I have a back button where I want the user to be able to get back to the MainWindow.xib that has the UITabBarController on it etc. But I have no idea how to do it, any help would be appreciated.
I am using a UITabBarController that I have defined in my appDelegate header file which is used to switch between a couple of main views. I also have a navigation bar on each view that can have buttons added to them like "edit" "add" etc, I am using these buttons to load "sub views" of the current main view and also loading the main views when user is in a subview.
(hope this makes sense.)
I am loading my sub views with the Add button that is connected to a method that looks like this.
Code:
- (IBAction)addSearch:(id)sender {
NSLog(@"addSearch Button has been pressed for new search");
//Load Query view
Query *newQuery = [[Query alloc] initWithNibName:@"Query" bundle:nil];
[self presentModalViewController:newQuery animated:YES];
[newQuery release];
}
that opens the Query view that the user used to make their search query.
Where I get lost is that I have a back button where I want the user to be able to get back to the MainWindow.xib that has the UITabBarController on it etc. But I have no idea how to do it, any help would be appreciated.
Last edited: