I am using following code for add button with image on tool bar, but it is only showing color no image is displaying.
UIBarButtonItem *locationItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"butImg.png"] style:UIBarButtonItemStylePlain target:self action:@selector(butImgPressed:)];
Any help will be appreciated.
Only way to do it: