xCode:在Tab栏应用程序中使用PDF图标

刚刚将PDF图标添加到我的应用程序并尝试将其作为标签栏图标放置.图标太大了!我在图像集中选择了Scales:Singe Scale.

这是故事板中的图像:

http://imgur.com/a/0PnFh

如何使它适合酒吧?

附加截图:http://imgur.com/a/c1SYb

最佳答案 安德烈,看到这个链接: https://stackoverflow.com/a/25818846/966789

(2014) You cannot choose a new size for the image; it will only look good if you keep it at the 44×44 size. The reason is that full vector support is not implemented … Why it (probably) works this way: (1) This makes it backwards compatible with previous iOS versions. (2) Resizing vectors may be a computational intensive task at runtime; by implementing it this way, there are no performance hits.

This is discussed in 2014 WWDC Session 411 – “What’s New in Interface Builder” at time 44:13. Note that they say the rasterization is done at build time. Also interestingly on the MAC it will use vectors at runtime. At some distant point in the future hopefully iOS will too.

点赞