1. 程式人生 > >TabBar高度修改以及UITabBarItem座標移動

TabBar高度修改以及UITabBarItem座標移動

    tabBarCtl.tabBar.frame = CGRectMake(0,HEIGHT-70, WIDTH, 70);

NSArray*array = [tabBarCtl.viewsubviews];

for (int i =0; i<5; i++) {

UIView *transtionView =array[0];

        transtionView.height = HEIGHT -70;

    }

for (UITabBarItem *item in tabBarCtl.tabBar.items) {

        item.imageInsets

= UIEdgeInsetsMake(8,0, -8, 0);

    }

    [[UITabBarItemappearance] setTitlePositionAdjustment:UIOffsetMake(0, 12)];