I am trying to set a back button to UIBarButton, but IBAction is not working properly. I am not sure what went wrong.
can any one let me know.
-(IBAction)back:(id)sender {
// Tell the controller to go back
[self.navigationController popViewControllerAnimated:YES];
}
Just replace your back Method with this :
Hope your problem is solved.
Enjoy …!!!