search

Home  >  Q&A  >  body text

objective-c - How to set the size of the picture on UITabBarItem

As shown in the picture, the tabbarController created with storyboard, how to set the image size?

ringa_leeringa_lee2797 days ago413

reply all(3)I'll reply

  • 天蓬老师

    天蓬老师2017-05-02 09:27:53

    There are three solutions. The first is to directly resize the original image. However, the icon will be blurred when running on a real machine, so it is not recommended. The second is to draw the image proportionally, which is more troublesome. The third method, which is also my recommendation, is to modify the title on the original image, such as message@2x.png. . x is lowercase, this involves the difference between @2x and @3x,,

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-02 09:27:53

    TabbarItem pictures cannot be manually set in size. Your picture is too big

    reply
    0
  • 伊谢尔伦

    伊谢尔伦2017-05-02 09:27:53

    The picture I made is too big.

    reply
    0
  • Cancelreply