tags:

views:

39

answers:

1

Hi,

I m working on one project in which I m calling other viewcontroller in the below way:--

AppDelegate *app2 = (AppDelegate *)[[UIApplication sharedApplication]delegate]; [self.navigationController pushViewController:app2.SecondForm animated:NO]; app2 =nil;

My application is navigation based and in which I have created my on back button on navigation bar -(void)viewDidLoad { self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Back" style:UIBarStyleBlackOpaque target:self action:@selector(Back:)]; }

in this way my Back action will call on click

-(IBAction)Back:(id)sender { What code I will write over here to get the same functionality which is by default given by navigation controller.

} Please help me out.

Special Thanks in advance

+1  A: 

popViewControllerAnimated

CiNN
NO No I want to call my other view in same way but in place of navigation button I replaced that navigation button which i generated automatically with my Back button and get the same functionality that is given by automatic navigation button
AmanGupta007