I'm doing code for state maintainance
So what happens that ,my currnet view will be appear after pressing homme
now in this view i want to add backbutton
in normal condition i'm adding button like this,
[self navigationItem].title = NSLocalizedString(@"login_title",@"");
UIBarButtonItem *backItem = [[UIBarButtonItem alloc] initWithTitle:NSLocalizedString(@"back_button",@" ") style:UIBarButtonItemStylePlain target:self action:@selector(done)];
[self.navigationItem setHidesBackButton:YES animated:YES];
self.navigationItem.leftBarButtonItem = backItem;
[backItem release];