Ios 在TabBArController中自定义tabBarItems的外观

Ios 在TabBArController中自定义tabBarItems的外观,ios,uitabbarcontroller,Ios,Uitabbarcontroller,在我的应用程序中,我使用的是UITabBarController。但是,我需要定制我的uitabaritems的外观 目前,我的屏幕如下所示: 我想增加标签之间的距离,中间的标签有更大的文本,因此标签看起来很拥挤。另外,我想在选项卡之间添加一个分隔符 代码如下: customerCareNavController = [[UINavigationController alloc] initWithRootViewController:custCareVC]; customerCareN

在我的应用程序中,我使用的是
UITabBarController
。但是,我需要定制我的
uitabaritems
的外观

目前,我的屏幕如下所示:

我想增加标签之间的距离,中间的标签有更大的文本,因此标签看起来很拥挤。另外,我想在选项卡之间添加一个分隔符

代码如下:

customerCareNavController = [[UINavigationController alloc] initWithRootViewController:custCareVC];
    customerCareNavController.title = @"Inquiry";

    purchaseOrderNavController = [[UINavigationController alloc] initWithRootViewController:POController];
    purchaseOrderNavController.title = @"Purchase Order";

    accAndContactsNavController = [[UINavigationController alloc] initWithRootViewController:accAndContactsController];
    accAndContactsNavController.title = @"Accounts And Contacts";

    tabBarController = [[UITabBarController alloc] init];

    tabBarController.viewControllers = [NSArray arrayWithObjects:customerCareNavController,accAndContactsNavController,purchaseOrderNavController, nil];

[(UITabBarItem*)[tabBarController.tabBar.items objectAtIndex:0] setImage:[UIImage imageNamed:@"Customer_Service.png"]];


        [(UITabBarItem*)[tabBarController.tabBar.items objectAtIndex:1] setImage:[UIImage imageNamed:@"Acc_Cont.png"]];


        [(UITabBarItem*)[tabBarController.tabBar.items objectAtIndex:2] setImage:[UIImage imageNamed:@"PO.png"]];

把tabBarItem设置成这样

UITabBarItem* ClientSupportTabBarItem = [[UITabBarItem alloc] init];
[ClientSupportTabBarItem  setFinishedSelectedImage: [UIImage imageNamed: @"btnTabItem-active.png"] withFinishedUnselectedImage: [UIImage imageNamed: @"btnTabItemNormal.png"]];
ClientSupportTabBarItem.title = @"Inquiry";
[customerCareNavController setTabBarItem: ClientSupportTabBarItem];

如何更改标题的字体大小和字体系列???如何在选项卡中添加分隔符?要在选项卡中添加分隔符,我认为您需要创建UItabaritem的图像。对于设置字体,也请检查。。