How to set the image for the custom buttoun created on the navigation bar in iphone?

Posted by Warrior on Stack Overflow See other posts from Stack Overflow or by Warrior
Published on 2010-03-26T10:38:54Z Indexed on 2010/03/26 10:43 UTC
Read the original article Hit count: 335

Filed under:
|

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];

© Stack Overflow or respective owner

Related posts about iphone

Related posts about custom-button