How to skin the arrow on PopoverPresentationController - ios

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];

Related

how to set image view color as textfield background color

In my home page I added an image to the view and also added textfield over the imageview. I want to show the image color as textfield back ground color
Just call:
textField.backgroundColor = [UIColor clearColor];
set ClearColor of your textfield's background color in storyboard

Change background Color in ios

i want to change my application background change. My view name is topNavVw for change my application background color i used this code
topNavVw.backgroundColor = [UIColor blackColor];
but it's not working .
Thanks in advance
You have to call
self.view.backgroundColor = [UIColor blackColor];
in viewDidLoad, in the Controller class that you want to appear black.
If you want a specific view/button/label to have a black background then it is the same,
myView.backgroundColor = [UIColor blackColor];
If it still doesn't work, use the view hierarchy debug (the button just before the arrow on the bottom of the screen, in the separation of the debug screen and code screen). There you will be able to see all your views and maybe you'll notice that your black view is behind another view that is not black.

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 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];

Removing the default tabbar color 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 *

Resources