views:

412

answers:

2

Hello,

I put the image to navigation bar title with the code below, but the image can't fill the all title view. There remains few pixels in right and left sides.

I want to display my image in whole title view area.

Resizing the image doesn't work.

Any ideas?

[self.navController.navigationBar.topItem setTitleView:imageView];

A: 

Try by setting imageview as the subview of the title view.

iphoneDev