objective-c - How to set the size of the picture on UITabBarItem
ringa_lee
ringa_lee 2017-05-02 09:25:53
0
3
407

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

ringa_lee
ringa_lee

ringa_lee

reply all(3)
Peter_Zhu

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

大家讲道理

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

伊谢尔伦

The picture I made is too big.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template