
How can i create a custom navigation bar in iPhone application? I wanted to add UIBarButton items as well as Search bar on the UINavigation controller ... please tell me if i need to create it programmatically or if i can do it in Interface builder.
Thanks!

Custom UINavigation Controller - to create the custom UINavigation controller or simply add a background image to it, find the given code. In which, we are creating a custom class for the navigation controller that will add the image on Navigation Bar.
Code: -
@implementation UINavigationBar (CustomImage)
- (void)drawRect:(CGRect)rect {
UIImage *image = [UIImage imageNamed: @"toolbar.png"];
[image drawInRect:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
}
@end
You nee to implement it above your @implementaion in .m file.
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.