I have a UINavigationController into which I push several views. Inside viewDidLoad for one of these views I want to set the self.navigationI
Even though is already answered this worked for me:
UIBarButtonItem *backButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"backArrow.png"] style:UIBarButtonItemStyleBordered target:nil action:nil];
self.navigationItem.backBarButtonItem = backButton;
[backButton release];
BTW: even in iOS4 initializing my back button with initWithCustomView: didn't work for me. ;(