Tab bar item icons appear darker - swift

When setting the icons for the tab bar items it seems that the icons are appearing darker for some reason. Examples below
Tab bar in app
What it should be like from designs
As you can see in the second example the colours are softer and lighter compared to the ones above i can't seem to figure out why because even in my image.xcassets the icons look like the ones in the design and in my setting in the identity inspector shown below there doesn't seem to be any settings for tints.
Storyboard

Related

How to remove border of a dynamically colored search bar in Swift?

Click to see my current search bar
What I am trying to do is to remove the two lines on top and at the bottom of the search bar (without changing anything else). I have tried using
searchBar.backgroundImage(UIImage)
but that makes the inside of the bar white, which is not what I want. I tried setting the style of the search bar to be minimalist, but am not sure how I can make the bar tint dynamic (previous dynamic-coloring code doesn't work anymore)
I have researched a lot and saw similar questions where people are ok with the search bar being white, or not having dynamic color. For the app I'm working on (kind of like a todo-list), the search bar in the view controllers with items under each category will have a different color, depending on the color of the category. Therefore, the color of the search bar is dynamic.
Is there anyway to just remove the two border lines?
searchBar.backgroundImage = UIImage()
searchBar.backgroundImage is not a function.
Not sure how you did that without xcode giving you an error.

In a iOS app that supports CarPlay, why the CPBarButtons in the map navigation bar show always monochrome with a light blue color?

I am trying to implement CarPlay for my navigation app, and I am experiencing a misbehaviour. Buttons that are instances of CPMapButton have their appearance on the map as expected. Instead, buttons in the CarPlay navigation bar (buttonType image), that are instances of CPBarButton, do not render well. They appear squeezed and always using a light blue color with no detail:
The icon I am using is the following:
Thanks for any help.
The misbehaviour is in fact normal. By better reading this link, it appears that:
A custom icon, sometimes called a template, discards color information and uses a mask to produce the appearance you see onscreen in a navigation bar or tab bar.
Sorry for missing it before...

How can I remove the blue highlight in a tab bar for iOS?

I've already been able to customize the gray shape that indicates what tab is selected, but how do I change the blue highlight to a different color or remove it completely? I'm building a tab bar with a very specific custom design, and this blue gloss has to go.
The UITabBar itself, won't allow you to modify it like this. My opinion would be to create your own custom TabBar. Look at this question for further informations: Really cool way to create custom UITabBar for iPhone app?

Tabbar with custom colors

I want to create a Tabbar application.My basic necessity is that i want the color of tab bar icons to be red instead of the default blue color.(i.e the selected tab icon has to be of red color instead of the default blue color provided by apple).I dont want the color of the tab bar to be changed.I want it to be of the default black color.Hope the question makes sense.
I want the tab bar to look something like this
Thanks.
As nicktmro noted, you have to customize everything.
Check this previous answer:
Changing Tint / Background color of UITabBar
(check a couple of answers on this one, a later answer fixes problems with the accepted answer)
And this blog post:
iPhone TabBar Custom Background Image
ADDED
Here's another one that looks clean and easy:
Custom colors in UITabBar
Be sure to read the comment on the answer.
You will have to create your own "tab bar" controller. Unfortunately the "blue" color you are talking about is actually just an alpha level, not a shade of blue.

Iphone UITabBarItems titles overlap

in my app i use a navigation controller and a tabBar for my views. The problem is that the titles that i have for the views are a little too long to fit.. they appear like in the photo below.
alt text http://img17.imageshack.us/img17/1524/picture2usx.png
could someone give any suggestions for resolving this problem? i tried subclassing UITabBarItem but i can't add a label as a subview, i can't change the font or size.. it looks ok when i have only 4 buttons but that is not ok because i need that more button. cutting down the names is not an option either, i don't think apple would like that.
thank you in advance.
As far as I can tell, there is no way to do what you want to do easily.
You could build some of the name string into your icon image. This will of course force you to internationalize your icon images, and you will also end up with the blue coloring in some of your text.
You could have no titles at all, and overlay your font-scaled title by drawing on the containing view. Note that when there is no title in the tab bar item, the following page will also have no title in the title bar.
Better by far, if you can do it, is to shorten the names. I know this is tough in German, but surely there must be alternatives.
I hope that Apple improves this in 4.0, but as those fonts are already fairly small, I sort of doubt it.