Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iphonejudy

macrumors 6502
Original poster
Sep 12, 2008
301
1
I used MainWindow.xib as my home page.

From that i add navigationcontroller.I want to go back to the mainwindow from the navigation controller.

I used the below code in the rootviewcontroller.m.But it did not work.
Code:
- (IBAction)back:(id)sender {
JsonappAppDelegate *Delegate1 = [[UIApplication sharedApplication] delegate];

	[Delegate1.navigationController popViewControllerAnimated:YES];
}
 
Code:
[self.view removeFromSuperview];
[window makeKeyAndVisible];

I used the above code for navigating the mainwindow.xib from the navigationcontroller.But the controls in the view are not working.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.