iphone – How to add image in place of text in navigation bar? – Education Career Blog

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

,

Can you use the titleView property of the UINavigationItem ?

,

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.

,

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

like:–

self.navigationItem.titleView = myImageView;

Leave a Comment