Removing the default tabbar color iOS - ios

i want to place the background image to default tabbar here i added the code for background tabbar background image but it appears both my background image and also default tabbar also please suggest for removing the default tabbar black color image .Plz refer the below image for better understanding
Thanks in advance

Try with this code:
// this will generate a gray tab bar
tabBarController.tabBar.barTintColor = [UIColor grayColor];
tabBarController.tabBar.translucent = false;
// this will give selected icons and text your apps tint color
tabBarController.tabBar.tintColor = [UIColor redColor]; // appTintColor is a UIColor *

Related

How to skin the arrow on PopoverPresentationController

I have a PopoverPresentationController, which needs to have black background , I applied background color but the arrow doesn't get skinned or coloured, attached is the image how it looks . POPController has tableview in it .
We are unable to remove arrow for popover controller. If you don't need arrow you need to customise your own view. If you want to change the background color
popOver.popoverPresentationController.sourceRect = btn.bounds;
popOver.popoverPresentationController.sourceView = btn;
popOver.popoverPresentationController.backgroundColor = [UIColor redColor];

How can I set the correct Nav Bar tint color?

I am creating a title view in my navigation bar. I designed my title view with background view color R:255 G:182 B:22 (on photoshop). In my storyboard, I've set the navigation bar tint color with the same RGB code, default style and translucent checked.
I put my image on my navigation title using:
UIImage *titleImage = [UIImage imageNamed:#"Icon-Small-40.png"];
self.navigationItem.titleView = [[UIImageView alloc]initWithImage:titleImage];
When I run the app, you can clearly see a square icon in the title view. The title view has a slightly darker background. I want to make the background the same color. I get the feeling that it has something to do with some storyboard setting but I can't find the issue.
the view has a tintColor property, so
self.navigationItem.titleView.tintColor = ...
Below answer for your navigation bar tint color
self.navigationController.navigationBar.tintColor = [UIColor greenColor];
Trying to make colours match up like this can be maddening. Colour space problems aside, the actual colour of the navigation bar isn’t guaranteed by the API to be the same as its barTintColor. You might find it easier to give the title image a transparent background.

How to set clearColor for UIPopover View?

I need to set UIPopover background color to clearColor. But rest of all colors are working fine with below code:
myPopover.backgroundColor = [UIColor greenColor];
but when I set clearColor, there is a white background instead of transparent.
Can any one help me. Thanks in Advance!
If what you're talking about is a UIPopoverController, then try setting the background color to its content view controller's view.
myPopover.contentViewController.view.backgroundColor = [UIColor clearColor];
Also, check this SO post about custom popover backgrounds.

How to change iOS app's background image?

I want to change my app's whole background image to black, including the status bar and navigation bar, because I want to use black underpainting and gray font color. How can I do this?
You can change the view into UIButton, UILabel, UIImageView, etc.
view.backgroundColor = [UIColor blackColor];

Set a UIView as the background of a UITabBar

I know how to customize the background color or the background image of a UITabBar:
tabBar.barTintColor = [UIColor ...]; // set background color
tabBar.backgroundImage = [UIImage ...]; // set background image
Unfortunately I have not found any option how to set a UIView as the background of a tab bar in the docs. Is there a way how I can achieve that?

Resources