I have been able to create simple UI apps, but now, im trying to create a more complex UI app, the MainWindow.xib, has a tab bar with 4 tabs, what i've done so far is the main structure of the app, all 4 tabs work, and they each have a different view, but, what i want to do in one of those tabs is:
-show 4 buttons, when either one is pressed, it changes the view, and in that view those same 4 buttons have to be there to be able to swap to the 4 views from either, de first view or the other 4 subviews.
-so far, i've been able to switch between 2 views, but those are subviews of MainWindow.xib,and using only 1 button, this time i need 4 subviews of a subview using 4 buttons.
and what i've done about this tab is:
-created 4 UIViewControllerSubClass
-created 4 new xib files, one for each view...
-in the MainWindow.xib's subview header file, i declared outlets for the 4 buttons im going to use.
I know some of you guys are pros, and this things are basic stuff for you, i'd apreciate your help...
I have been able to create simple UI apps, but now, im trying to create a more complex UI app, the MainWindow.xib, has a tab bar with 4 tabs, what i've done so far is the main structure of the app, all 4 tabs work, and they each have a different view, but, what i want to do in one of those tabs is:
-show 4 buttons, when either one is pressed, it changes the view, and in that view those same 4 buttons have to be there to be able to swap to the 4 views from either, de first view or the other 4 subviews.
-so far, i've been able to switch between 2 views, but those are subviews of MainWindow.xib,and using only 1 button, this time i need 4 subviews of a subview using 4 buttons.
and what i've done about this tab is:
-created 4 UIViewControllerSubClass
-created 4 new xib files, one for each view...
-in the MainWindow.xib's subview header file, i declared outlets for the 4 buttons im going to use.
I know some of you guys are pros, and this things are basic stuff for you, i'd apreciate your help...
I forgot to put some of my code, here it is:
-the .h file of the MainWindow.xib subview:
#import "NoCirculaViewController.h"
@implementation NoCirculaViewController
@synthesize NoCircula1;
@synthesize NoCircula2;
@synthesize NoCircula3;
@synthesize Calendario;
- (void)didReceiveMemoryWarning {
// Releases the view if it doesn't have a superview.
[super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
}
- (void)dealloc {
[super dealloc];
}
@end
sometimes i forget about deallocating memory and some details like that, so please feel free to correct me, and im not putting the code from my 4 subviews classes, because i haven't added anything...
if you dont get what im trying to do, look at the stocks application, where there are some buttons, that display charts for days, months, and years, and when you tap one of them the view changes, but the buttons stay where they are, that is the User Interface i want to acomplish...
Hey guys, i've been doing some research, and im getting to acomplish what im trying to do, but i also want to implement lazyloading, is that a good idea, if the user doesnt always want to use the 4 subviews?