Since iOS7 my UIButton images looks like shadow if set to system type. Using custom type they look normal, but I would like to keep the look of the system button. Also, adding an image to the navigation bar also has this problem, and I could not find anyway around it. I add it with the following code:

NSString *imagePath = videoOnly ? [[NSBundle mainBundle] pathForResource:@"Video" ofType:@"png"] : [[NSBundle mainBundle] pathForResource:@"VideoAndAudio" ofType:@"png"];
UIImage *icon = [UIImage imageWithContentsOfFile: imagePath];
videoAudioButton = [[UIBarButtonItem alloc] initWithImage:icon style:UIBarButtonItemStylePlain target:self action:@selector(videoAudioEvent)];
self.navigationItem.rightBarButtonItem = videoAudioButton;

I can't post images but you can see the problem on this post: On iOS7 simulator images shown as blue shadow

Related posts

Recent Viewed