- (void)addOneChildViewController:(UIViewController*)viewController
WithTitle:(NSString*)title
normalImageName:(NSString*)normalImageName
selectedImageName:(NSString*)selectedImageName {
viewController.tabBarItem.title= title;
[viewController.tabBarItem setTitleTextAttributes:dict forState:UIControlStateNormal];
viewController.tabBarItem.titlePositionAdjustment = UIOffsetMake(0, 5);
viewController.tabBarItem.imageInsets=UIEdgeInsetsMake(-1,0,1,0);
}
网友评论