0

I've a image 30x30 and I want set like TabBarItem in my TabBar. But when I set the result is this:

enter image description here

The large blue square appears instead my image.

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Augusto
  • 3,825
  • 9
  • 45
  • 93

2 Answers2

0

Make sure your image is single-color, preferably black and white. If there's a background, even one with a low alpha, you may get this effect. The OS is trying to make an iOS-style tab bar image (think of the ones in the Music app), which is single color. It converts the non-transparent pixels to blue, and the transparent ones to white/clear. If the entire image is non-transparent, you'll end up with that.

Ben Gottlieb
  • 85,404
  • 22
  • 176
  • 172
0

Did you check your image file name? Becuase I had exactly same experience and it was imge file name did not match with the name I put on storyboard

User18474728
  • 363
  • 2
  • 11