Back from tableview

Discussion in 'iOS Programming' started by iphonejudy, Jan 31, 2010.

  1. iphonejudy macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
    #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];
    }
     
  2. iphonejudy thread starter macrumors 6502

    iphonejudy

    Joined:
    Sep 12, 2008
    #2
    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.
     

Share This Page