设置tabBar中间的按钮比较大的发布

MainTabBarController.h

 

UITabBarItem *item = [self.tabBar.items objectAtIndex:index];

    [item setTitle:title];

    if (index==2) {

        item.imageInsets=UIEdgeInsetsMake(-14, 0, 14, 0);

    }


 

posted on 2017-10-11 22:33  土匪7  阅读(247)  评论(0编辑  收藏  举报