hi guys im working on a traditional iphone nav controller app, with Auto back buttons etc.
I am working on when an 'edit' button is pressed the LHS back icon dims, my new one comes in, and then once i unclick 'edit' the back button comes back.
So far, the back button goes away, and my new one comes in. but I cant put it back!
I know the code, but I dont have the right action to call it.
Here is what I have so far:
(void)setEditing:(BOOL)editing animated:(BOOL)animated {
[self.navigationItem setHidesBackButton:editing animated:animated]; //fades back button
//de 006 - Load in Move section button here.
UIBarButtonItem *saveButton = [[[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemOrganize
target:self action:@selector(altersection:)] autorelease];
self.navigationItem.leftBarButtonItem = saveButton;
(basically i want the inverse of
(void)setEditing:(BOOL)editing animated:(BOOL)animated {
and there I can do
self.navigationItem.leftBarButtonItem = nil; //custom button hide
self.navigationItem.hidesBackButton = NO; /replace back button
Is there an inverse of (void)setEditing:(BOOL)editing ?