tags:

views:

24

answers:

3

How to add image in place of text in navigation bar ?

A: 

Can you use the titleView property of the UINavigationItem ?

Nimrod
Can you show me how ?
rajivpradeep
A: 

UINavigationBar is a subclass of UIView. Thus, you can create your UIImageView object and add it as a subview in your UINavigation bar.

[navigationBar addSubview:imageView];

One thing you need to keep in mind that the navigationbar dimensions which is 320X44 in Portrait & 480X20 points in landscape for iPhone.

Sagar
A: 

u can create an image view with some image and add it to the title view of navigation bar

like:--

self.navigationItem.titleView = myImageView;

pankaj kainthla
In which method should i add this code ?
rajivpradeep
you can put in particular view did load for differnt images or put them in delegate class where u unitialized navigation controller for the first time to show that image on whole project
pankaj kainthla