What I am having right now is (the uibarbuttonitem is connected to the one in header file)

Then I do customization like below
- (void)viewDidLoad
{
[super viewDidLoad];
UIButton *back = [[UIButton alloc] initWithFrame:CGRectMake(0, 0, 55, 32)];
[back setBackgroundImage:[UIImage imageNamed:@"back_button01.png"] forState:UIControlStateNormal];
[back setTitle:@"Back" forState:UIControlStateNormal];
[back addTarget:self action:@selector(goBack) forControlEvents:UIControlEventTouchUpInside];
backButton = [[UIBarButtonItem alloc] initWithCustomView:back];
}
However, after running my application, that uibarbuttonitem is not changed at all.I did try to put above codes in initWithNibname but no luck at all
Please advice me and point out if I have made a mistake in the middle
You need
self.navigationItem.leftBarButtonItem = backButton;at the end.