
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];
}
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.