UIBarButtonItem showing up as a blue square instead of the image I want (Interface Editor)

后端 未结 1 1450
甜味超标
甜味超标 2021-01-25 18:40

So... I have added a button to my nav bar in the interface editor, however when I set the image I simply get a blue box. The images are the correct size, however they do not sho

相关标签:
1条回答
  • 2021-01-25 18:52

    The problem is your image. The image isn't shown as-is. The image is used as a mask to generate the actual image. Only the alpha channel of the image is relevant, not any of the colors.

    The simplest solution for your particular image is to remove all of the white from the image and make those parts fully transparent.

    0 讨论(0)
提交回复
热议问题