Hi
I'm new to object-c/cocoa, so please try pointing the answers so. I have problem call the pushViewController method. I have simple one view project (probabli not the best choice) with storyBoard. Then i add NavigationController to the storyBoard and change the InitialViewControler to it. Then i put a button on the FirstViewControler which is the rootViewController. I wan load the next viewControler from the StoryBoard so i add the code to the button.
The NavigationControler is poited corectly and is not nil. The vcSecond viewController is allocated correctly.
But i get the error SIGABRT. I have been looking for the correct answer but without luck. Could someone help me to work it out.
I'm new to object-c/cocoa, so please try pointing the answers so. I have problem call the pushViewController method. I have simple one view project (probabli not the best choice) with storyBoard. Then i add NavigationController to the storyBoard and change the InitialViewControler to it. Then i put a button on the FirstViewControler which is the rootViewController. I wan load the next viewControler from the StoryBoard so i add the code to the button.
Code:
vcSecond *NextView = [[vcSecond alloc] initWithNibName:@"vcSecond" bundle:nil];
[[self navigationController] pushViewController:NextView animated:YES];
The NavigationControler is poited corectly and is not nil. The vcSecond viewController is allocated correctly.
But i get the error SIGABRT. I have been looking for the correct answer but without luck. Could someone help me to work it out.