I'm currently setting up this view to be swapped with another in an iPhone game. When I use this code...
- (void)viewDidLoad {
menuViewController = [[menuViewController alloc] initWithNibName:@"SomeViewController" bundle:nil];
self.menuViewController = menuViewController;
[self.view insertSubview:menuViewController.view atIndex:0];
[menuViewController release];
}
...Xcode gives me a warning "'SomeViewController' may not respond to '-alloc'. I can't figure out how to get rid of this warning...can anybody help me?
Edit: Maybe this will help. In my .h file, I have this...
@interface RabbitReflexViewController : UIViewController {
IBOutlet SomeViewController *menuViewController;
}
...along with some other code. My .m file contains what is above.