TabBarItems and setting their image sizes?

后端 未结 4 405
清酒与你
清酒与你 2020-11-29 19:00

I am currently adding images to each one of my tab bar items. One image I like has a size that is much bigger then the area of the bar item. When I set the image of the bar

4条回答
  •  余生分开走
    2020-11-29 19:38

    Another option is to create a vector image PDF. What you do is resize your vector image to the smallest size (22x22) and export it to a PDF file. You can do this with Adobe Illustrator, Sketch and many other vector image editing tools.

    Then you add the PDF file to your assets folder and in the Properties Inspector set "Scale Factors" to "Single Vector". That should do it!

提交回复
热议问题