I have used UInavigation controller when the calling form is a UITable but in this case I’ve used a button to call the form I need using the following code –
EditCodesController *editcodesController = [[EditCodesController alloc] initWithNibName:@"EditCodesController" bundle:nil];
UINavigationController *mySocondView =[[UINavigationController alloc]
initWithRootViewController:editcodesController];
[self presentModalViewController: mySocondView animated:YES];
This works ok and I’ve place a ‘Back’ button on the navigator bar on the form called. What code do I need to use to return to the original form?
You need to call
dismissModalViewControllerAnimated:on the Navigation Bar to dismiss your Modal View Controller. What you need to do is have a selector method in your class where the back button is displayed which calls thedismissModalViewControllerAnimated:selector on the original navigation controllerIn your opened view, you could have the button set up and the selector like so: