[英]Why tab bar icon is not showing in my Bar item image?
I am creating a simple tab bar, and i am using iphone 8 in simulator.我正在创建一个简单的标签栏,我在模拟器中使用 iphone 8。 I have imported icon( not glyph) of size 50 x 50 as mentioned in apple guideline, but the icon is not showing up in bar item image.如苹果指南中所述,我已导入大小为 50 x 50 的图标(不是字形),但图标未显示在条形项目图像中。 I have done everything ( Render as, change pixel size, even i tried with different resolutions like 25 x 25, 75 x 75) but its not showing up in portrait mode.我已经完成了所有操作(渲染为,更改像素大小,即使我尝试了不同的分辨率,例如 25 x 25、75 x 75),但它没有以纵向模式显示。 Kindly help.请帮忙。 i wanna do it in storyboard.我想在 storyboard 中做。 Below are the screenshots.下面是截图。
You may want to try adding the icon into the other 2 slots for universal.您可能想尝试将图标添加到其他 2 个通用插槽中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.