I would like to place a logo/image in the left side of NavigationBar
. I try this in codes, but it is not worked properly.
UIImage *logo = [UIImage imageNamed:@"logo.png"];
UIImageView *imageView = [[UIImageView alloc] initWithImage: logo];
imageView.frame = CGRectMake(2, 2, 40, 40);
self.navigationItem.titleView = [[UIImageView alloc] initWithImage:logo];
I try with view to be placed first then place image as UIImageView but alignment is not good. And moreover view appears to be white space while run the code..