How to set the image for the custom buttoun created on the navigation bar in iphone?
- by Warrior
I am new to iphone development.I want to create custom button on navigation bar.I want to create it with a image.How can i do it.Please help me out.Here is my code.Thanks.
UIBarButtonItem *leftbutton = [[UIBarButtonItem alloc] initWithImage:@"Email.png" style:UIBarButtonItemStyleBordered target:self action:@selector(leftbutton)];
self.navigationItem.leftBarButtonItem = leftbutton;
[leftbutton release];