
i wanted to add a background image to my UIBarButtonItem.. that i created into .xib in my iPhone application.

Set the background image to UIBarButtonItem
UIBarButtonItem *btn
- (void)viewDidLoad {
[super viewDidLoad];
UIButton *backButton = [UIButton buttonWithType:UIButtonTypeCustom];
backButton.frame = CGRectMake(0, 0, 79, 29.0);
[backButton setImage:[UIImage imageNamed:@"wo.png"] forState:UIControlStateNormal];
UIBarButtonItem *btn
[self.btn initWithCustomView:backButton];
}