尽量不去自定义tabBar。
尽量不去自定义tabBar。
|
chmlaiJun 26, 2015
1
tabbar icon 好像有个 inset 之类的属性
|
|
LINAICAIJun 27, 2015
2
。。。好好看文档
|
|
vanemuJun 27, 2015
3
设置 tabBarItem 的 titlePositionAdjustment 和 imageInsets 这两个属性可以实现需求。
|
|
haosxianrJun 27, 2015
4
// 矫正TabBar图片位置,使之垂直居中显示
CGFloat offset = 5.0; for (UITabBarItem *item in self.tabbar.items) { item.imageInsets = UIEdgeInsetsMake(offset, 0, -offset, 0); } |