IOS 8 Tab Bar Item Background Colour

In your tabBarController, you can set the default UITabBar tintColor, barTintColor, selectionIndicatorImage (cheating a bit here) and renderingMode of the images, see comments below: class MyTabBarController: UITabBarController, UINavigationControllerDelegate { … override func viewDidLoad() { … // Sets the default color of the icon of the selected UITabBarItem and Title UITabBar.appearance().tintColor = UIColor.redColor() // Sets the … Read more

How to change the Color of text in UITabBarItem in iOS 5

Do you mean this one? Keep in mind, this only works for iOS5.0 or later. if ([self.tabBarItem respondsToSelector:@selector(setTitleTextAttributes:)]) { NSLog(@”*** Support method(iOS 5): setTitleTextAttributes:”); [self.tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIFont fontWithName:@”AmericanTypewriter” size:20.0f], UITextAttributeFont, [UIColor blackColor], UITextAttributeTextColor, [UIColor grayColor], UITextAttributeTextShadowColor, [NSValue valueWithUIOffset:UIOffsetMake(0.0f, 1.0f)], UITextAttributeTextShadowOffset, nil]]; } Apple’s documentation on customizing appearance: In iOS v5.0 and later, you can … Read more

Changing font size of tabbaritem

I recommend a better way: [yourTabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys: [UIColor whiteColor], UITextAttributeTextColor, [NSValue valueWithUIOffset:UIOffsetMake(0,0)], UITextAttributeTextShadowOffset, [UIFont fontWithName:@”Helvetica” size:18.0], UITextAttributeFont, nil] forState:UIControlStateNormal];

UITabBar not showing selected item images in ios 7

You need to use tabBarItem initWithTitle:image:selectedImage [[UITabBarItem alloc] initWithTitle:@”title” image:image selectedImage:imageSel]; in conjunction with changing the UIImage rendering mode: imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal or (to apply parent views template tint mask, this option is default for Tab bar Items unless you opt out with the above rendering mode) imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate here is a code sample for one tab bar … Read more

iOS 11 iPhone X simulator UITabBar icons and titles being rendered on top covering eachother

I was able to get around the problem by simply calling invalidateIntrinsicContentSize on the UITabBar in viewDidLayoutSubviews. -(void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; [self.tabBar invalidateIntrinsicContentSize]; } Note: The bottom of the tab bar will need to be contained to the bottom of the main view, rather than the safe area, and the tab bar should have no … Read more

automaticallyAdjustsScrollViewInsets not working

I think that automaticallyAdjustsScrollViewInsets only works when your controllers view is a UIScrollView (a table view is one). You’re problem seems to be that your controller’s view is a regular UIView and your UITableView is just a subview, so you’ll have to either: Make the table view the “root” view. Adjust insets manually: UIEdgeInsets insets … Read more