I created a project using the View based app every time I add a second view and the code it doesnt seem to work at all.
Thats the code im using and i make the necessary connections but the error i keep getting is "request for member 'view' in something not a structure or union." The error happens on the self.view line.
What could this mean?
Also im using Xcode3.1.3 if that makes a difference.
Code:
- (IBAction)switchViews {
MainView *firstView = [[MainView alloc] initWithNibName:@"MainView" bundle:[NSBundle mainBundle]];
[self.view addSubview:firstView.view];
[SecondViewController release];
}
Thats the code im using and i make the necessary connections but the error i keep getting is "request for member 'view' in something not a structure or union." The error happens on the self.view line.
What could this mean?
Also im using Xcode3.1.3 if that makes a difference.