Hi Im really new at iphone development, just trying to get a basic program with some view controllers going. Im having an issue with an error:
- (void)viewDidLoad {
IntroViewController *introController = [[IntroViewController alloc]
initWithNibName"IntroView" bundle:nil];
self.introViewController = introController;
[self.view insertSubview:introController.view];
error shows up here as follows:
warning: 'UIView' may not respond to '-insertSubview:'
[introController release];
}
I am simply trying to add my view with a loaded nib to the main view. Is view did load the best place for this? Any help, tips, etc are greatly appreciated. I can post more code if the problem cant be discovered with just this code.
Also, how do you add code like I have seen in this forum? Thanks everybody
- (void)viewDidLoad {
IntroViewController *introController = [[IntroViewController alloc]
initWithNibName"IntroView" bundle:nil];
self.introViewController = introController;
[self.view insertSubview:introController.view];
error shows up here as follows:
warning: 'UIView' may not respond to '-insertSubview:'
[introController release];
}
I am simply trying to add my view with a loaded nib to the main view. Is view did load the best place for this? Any help, tips, etc are greatly appreciated. I can post more code if the problem cant be discovered with just this code.
Also, how do you add code like I have seen in this forum? Thanks everybody