Using different icons at tab bar in swift - ios

I want to use TabBar in my iOS project. My Icons have their own color and each icon has different color scheme when selected. But when i add icons, it converts into iOS own colors. I cant define each icon with different color. How can i use my icons with their own color?

Go to Assets.xcassets folder in Xcode -> Select the image -> change the rendering mode to Original Image

Related

iOS launch screen for light and dark modes

I follow the instruction in RSP-12931: Native resolution not supported on iPAD Pro to create an iOS LaunchScreen for my Delphi app. Now, with iOS 13, the problem is that I need 2 variants of this launch screen, one for dark mode and another for light mode. How do I create a basic launch screen in XCode that shows a customized background color w/ logo image in dark/light modes?
This is all done inside an Asset Catalog.
For the logo, open your asset catalog and select the image. Now, select the Appearances drop down on the right, and select Any, Light, Dark.
The Asset Catalog will now let you add different images for Any (pre-iOS 13), Light and Dark for that particular image:
For the background color, you'll need to define a custom Color set inside your asset catalog.
Press the + button at the bottom of your list of assets, and select New Color set.
Select the Color set that appears in your assets and, again, adjust the Appearances dropdown to read Any, Light, Dark.
You can now provide different colors for each mode using the RGB sliders underneath the Appearances dropdown:
Now, inside your storyboard you'll be able to select your custom color, and it will adapt depending on the mode running on the device:
You can test this by flipping the Interface Style widget at the bottom of the Interface Builder window between light and dark mode:
After adding images in assets catalog with respect to appearance. If the changes are not reflected, uninstall the application and restart the device.

how to change toolbar icon color in Xamarin.Forms ios

It works for Android but in ios the toolbar icon is coming in a monochrome color. How to show them in the original icon image color ? Also I need to change the icon color dynamically based in the core source in xamarin.
Thanks for your help in advance.
You need to create entry in the Assets catalog and set RenderAs to 'Original'.

More Tab icons colour in iOS 8 and later

Background:
I am working on an application with multiple tabs, so there is a more tab on the right.
Issue:
In iOS 7, the colour of icons in more tab was grey, which is Apple's default.
But from iOS 8 and later, the colour of those icons are changed to blue.
Expected:
I want the icons colour in the more tab to be grey.
I have tried multiple solutions related to UITabBar icon's images, but no one worked.
I have attached the images for both iOS7 and iOS8-and-later.
Try changing your application's global tint color. If you are using Storyboards, this option is available in the Documents section of the File Inspector.
According to Apple's documentation here, "If you don’t specify a tint for the window, it uses the system default color."

Choosing image from Assets it is not showing in Tab Bar Controller in SWIFT

I have a ViewController which is embed in Tab Bar Controller. I wanted to add custom icon to Tab Bar (in Main.storyboard), which is already exist in my Assets. When I do that, I don't see the icon but grey square. After when I run the app, I still have a grey square, not my own custom icon in .jpg. Describing picture bellow.
Grey square in launched application
Grey square in Xcode
Can somebody help me, how to show my own icon?
Check the alpha channel of your images. They should have some transparency. If not, UITabBarItem will show them as a square you've provided on the screenshot.
You could try a .png file possibly with some transparency in the image and make sure you have your image.png, image#2x.png and image#3x.png sizes in your Assets for retina etc.
If this doesn't work try just loading the image into a uiimageview to see if it loads okay. if it doesn't then it might be an issue with the image itself so you could try re saving it again.

Xcode 5 and Images

I have an app that uses button images that are being changed as the user interacts with the button.
I just converted my app to iOS7 in Xcode 5, but now my button images are not showing any more. All I see is a bright blue square where the button should be.
When I change the tint from blue to clear, the buttons show, but the button does not change when I push it.
The images are still in my supported files folder and should be properly used by Xcode...
Does anyone have a similar issue? Can this be fixed easily?
There is a new button type called UIButtonTypeSystem with iOS 7.
On your .xib file, change the button type to Custom.

Resources