I am trying to get a button on a navigation bar to load a new view, simple right? I have been unable to get it to work here is my code
- (IBAction)addAction:(id)sender
{
NSLog(@"Button pressed");
NSString *viewController = [[addViewController alloc] initWithNibName:@"AddView" bundle:nil];
self.addViewController = viewController;
[viewController release];
}
"Button pressed" shows up in the log this is just one off my chunks of code I tried to get this to work, I get a warning "passing argument 1 of 'setAddViewController' from distinct Object-C type" It should be simple but it can't get in to work, I am using Interface Builder so I am trying to load a nib. Thanks for your help