A question related to back button
Posted
by user217572
on Stack Overflow
See other posts from Stack Overflow
or by user217572
Published on 2010-03-16T11:09:10Z
Indexed on
2010/03/16
11:26 UTC
Read the original article
Hit count: 214
iphone
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];
© Stack Overflow or respective owner