I want to call secondview from my current view but this code suggested by someone is not working properly
UINavigationController *nav=[[UINavigationController alloc] initWithNibName:@"Second" bundle:[NSBundle mainBundle]];
[nav pushViewController:@"Second" animated:YES];
You can use the presentModalViewController for the second view.
hope this will help you.
[self.navigationController presentModalViewController:SecondView animated:YES];