iOS-UITabBarItem 的間距微調
今天介紹一下UITabBarItem內建的間距微調
如圖
其實只要加一段 setTitlePositionAdjustment:UIOffsetMake(x , y) 就可以了
UITabBarItem * lobbyItem = [UITabBarItem alloc]; lobbyItem = [lobbyItem initWithTitle:@"购彩大厅" image:img0 selectedImage:img1]; [lobbyItem setTitlePositionAdjustment:UIOffsetMake(0.0, -5.0)];
0.0是x方向 -0.5就是y方向~