IOS page navigation doesn't work

MuthuMKMuthuMK GBMember ✭✭

I want to navigate from one page to other on button click event. I have two forms first one is main.xib and the other one is employee.xib. In delegate class I call main.xib as below:

UIWindow window;
window=new UIWindow(UIScreen.MainScreen.Bounds);
window.RootViewController=new MainView();
window.MakeKeyAndVisible();

this works fine and it loads main.xib which has button to navigate to employee.xib.

in button click event I wrote the code as below. But it doesn't work.

BtnEmployee.TouchUpInside += delegate
{
NavigationController.PushViewController(new employee(), true);
}

but this doesn't work. Can any one help me with the solution.

Sign In or Register to comment.