Try this:
UIBarButtonItem *backBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"icon_back.png"] style:UIBarButtonItemStylePlain target:self action:@selector(goBack:)];
self.navigationItem.leftBarButtonItem = backBarButton;
Then write the goBack
method:
- (void)goBack:(id)sender {
[self.navigationController popViewControllerAnimated:YES];
}
Note: There are some other initializer for UIBarButtonItem. Choose any one as your need.
Hope this helps.. :)