I am workin on a Navigation Based app, with a table view and a navigation bar on the first view. On the Navigation Bar ive got a + Button that should open up another view. Ive tried this code:
SecondView *second = [[SecondView alloc] initWithNibName:nil bundle:nil];
[self presentModalVewController:second animated:YES];
It works inside a view based app but the ground structure of a navigation based app is completely different, so that i cant do the steps that work with the view based app. Because normally you dont do anything on the mainWndow.xib but you do on the viewcontroller.xib. in this case although ive got the navigation bar with the button on the mainwindow.xib and thats what messes everthing up. Ive tried to add an object and connect it to a viewcontrollersubclass to recieve the IBActions, but then tha app always crashes when i press the button! Can anyone help me with this