UITabBarController中TabBarItem的图片规则,一般是多大? 是固定的吗?
ringa_lee2017-04-18 09:19:59
The latest version of the design document below, the unit is pixels.
https://developer.apple.com/ios/human-interface-guidelines/graphics/custom-icons/
ringa_lee2017-04-18 09:19:59
Each picture must be prepared in two sizes. When naming, the names before the @ symbol must be the same, and add @1x.png, @2x.png and @3x.png at the end to distinguish them
imageName@1x.png Image pixels (30 x 30)
imageName@2x.png pixels (60 x 60)
imageName@3x.png Blob pixel (90 x 90)
Mobile phones from 4s and later have double or triple images, so 1x images are no longer needed. (Thank you Kuku Ai Dian for the addition)
Put it in Assets.scassets as shown below,