Ios – How to navigate to another page from a button

cocoa-touchiosiphoneobjective-cxcode

I am new at the area of Objective-C and am building an iphone app using Xcode. I have taken two buttons on a page and from among one I would like to go to another page. How is it possible at Xcode?

Best Solution

You can try it.

EnterNameController *newEnterNameController = [[EnterNameController alloc] initWithNibName:@"EnterNibFileName" bundle:[NSBundle mainBundle]];
    [[self navigationController] pushViewController:newEnterNameController animated:YES];