博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
关于uitabbaritem图片显示
阅读量:2396 次
发布时间:2019-05-10

本文共 328 字,大约阅读时间需要 1 分钟。

刚才在群里问其他兄弟,说是uitabbaritem 可以只用一套图片就行。

也可以直接设置两套图片,高清的在后面加个  @2x 就行,然后再设置时直接把 图片名写上就行,不需要 @2x  和 .png 后缀 (说是到时候可以自动识别,注意的是 4.0以下的版本不支持这种命名方法)例如:

viewController1.tabBarItem = [[UITabBarItemalloc] initWithTitle:@"搜索"image:[UIImage imageNamed:@"nav_icon_search"] tag:1001];

附上uitabbaritem图片像素吧:普通屏是 30*30,retina屏是 60*60 (不是很确定,应该就是这个)

转载地址:http://wxuob.baihongyu.com/

你可能感兴趣的文章
OpenGL坐标系
查看>>
VS2008快捷键大全
查看>>
poj 2140 Herd Sums
查看>>
poj 2524 Ubiquitous Religions
查看>>
poj 1611 The Suspects
查看>>
poj 3331 The Idiot of the Year Contest!
查看>>
poj 3233 Matrix Power Series
查看>>
poj 3070 Fibonacci
查看>>
poj 1656 Counting Black
查看>>
BestCoder Round #28
查看>>
poj3299 Humidex
查看>>
poj2159 Ancient Cipher
查看>>
poj1083 Moving Tables
查看>>
poj2255 Tree Recovery
查看>>
zoj 1745 Are We There Yet?
查看>>
UVA100 The 3n + 1 problem
查看>>
hdu1754 I Hate It
查看>>
hdu 1166 敌兵布阵(求区间的和,单节点更新)
查看>>
hiho一下 第四十四周 题目1 : 博弈游戏·Nim游戏
查看>>
poj2299 Ultra-QuickSort(线段树计数问题)
查看>>