By customization we can change look and feel of Navigation Bar. Below is sample code which demonstrates how to customize Navigation Bar. We can achieve this by using Categories in Objective-C: Code Sample: /*********************************************************/ @interface UINavigationBar (CustomNavBarImage) - (void) setNavBackgroundImage:(UIImage*)bgImage; - (void) removeNavBackgroundImage ; @end /************************************************************/ //.m file (Implementaion file) #import "UINavigationBar+CustomNavBarImage.h" @implementation UINavigationBar (CustomNavBarImage) - (void) setNavBackgroundImage:(UIImage*)bgImage { if (bgImage == NULL) return; UIImageView *myImageView= [[UIImageView alloc] initWithImage:bgImage]; myImageView.frame = CGRectMake(0,0,320,44); [self addSubview:myImageView]; [myImageView release]; // If You want to add some buttons and title go through that //[myImageView release]; UI...
Technical Solutions for C, C++, Objective-C, C#, OOP's, Data Structure, Algorithms, Mobile Technology, Mobile Design, HTML/HTML5, Web, iOS/iPad/iPhone, Apple Script, Shell Script, Phonegap, AppAccelerator, Unix, Linux, Mac-OS X, Windows, SQL-Server, PL-SQL, Sqlite3, Database Design issues tips, tricks and hacks by Vinay Mishra.