Ok so at the moment i have a navigation controller with a right button which logs a user in.
however I want to change the login button to logout once it has been clicked and this logout button will call a different IBAction.
to help visualize this.
As default, I have a right button on the navigation controller which says login, once this login button is pressed the ibaction login:(id)sender is pressed.
what i want to do is change the button to logout and call logout:(id)sender when it is clicked.
is this possible.
thanks.
You can just change what the button does when it is pressed:
Alternately, since the button is on the UINavigationBar, you could instead do this: