Custom Bar Button Item Image Frame Too Wide [closed]

∥☆過路亽.° 提交于 2019-12-11 16:13:28

问题


I am trying to add a custom icon as the image of a bar button item. I correctly added the image assets in the 1x, 2x, 3x sizes, but the frame is too wide for no apparent reason. The image itself is a square and does not have such a wide frame. Click the link below to see the issue. Is there a way to fix this?

Extra wide frame image


回答1:


These are the Human Interface Guidelines that the documentation recommends for custom icons.

You just need to resize the image as per standard.

1X: 25 x 25

2X: 50 x 50

3X: 75 x 75



来源:https://stackoverflow.com/questions/56388773/custom-bar-button-item-image-frame-too-wide

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!