search

Home  >  Q&A  >  body text

ios - UITabBarController中图片的尺寸一般是多大?

UITabBarController中TabBarItem的图片规则,一般是多大? 是固定的吗?

迷茫迷茫2771 days ago638

reply all(3)I'll reply

  • 巴扎黑

    巴扎黑2017-04-18 09:19:59

    reply
    0
  • ringa_lee

    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/

    reply
    0
  • ringa_lee

    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

    1. imageName@1x.png Image pixels (30 x 30)

    2. imageName@2x.png pixels (60 x 60)

    3. 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,

    reply
    0
  • Cancelreply