I've a image 30x30 and I want set like TabBarItem
in my TabBar
. But when I set the result is this:
The large blue square appears instead my image.
I've a image 30x30 and I want set like TabBarItem
in my TabBar
. But when I set the result is this:
The large blue square appears instead my image.
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.
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