My problem is that I have an image with width = 44 and height = 44. This method didn\'t work properly.
width = 44
height = 44
[self.navigationController.navig
Try this:
UIImageView *titleView = [[UIImageView alloc] initWithImage:myUIImage]; [self.navigationItem setTitleView:titleView];
Using Swift :
var titleView = UIImageView(image: UIImage(named: "nameOfTheImage.ext")) self.navigationItem.titleView = titleView