UISearchBar tint color set to clear color - interface-builder

I want to make custom appearance for UISearchBarin iOS 6 app, so I am trying to set tint color for it in Interface Builder as clear color. But when I am choose clear color in list it automatically changed to black! I am using Xcode 4.6.3
Is it an Xcode bug or this behavior is due to reasons?

Related

Background color of tabbar and alert messages are bright yellow after xcode update

I updated my xcode to 12.3 and it changed the background colors to bright yellow on Navigation Tab bar and alertviews.
I have them set to default colors and that appears to be light grey. The text and images remain black but I noticed that one of the images has gone to full color. Very weird.
Also the background color of the entire simulator, even the App Settings page, has turned bright yellow. I can change colors in the inspector panel (though the text tint does not change, always white) and it changes it on the xib screen but the simulator still shows the bright yellow background with the correct blue if selected and dark gray if not selected images and text.
The change effected every tab bar in the app. When run on actual device, the colors are normal. Translucent is checked. When unchecked the background color appears white.
Anyone give me advice on what to do here?
I ran into the same issue after install xcode 12.3. This is how to fix the issue.
Certain parts of the screen appear yellow in Interface Builder and the simulator.
First do this...
Open your Simulator and go to File > GPU Selection > Prefer Integrated GPU in
Then do this...
Quit Xcode and simulator
Unplug power cable
Restart Xcode and simulator
Check storyboard or simulator to confirm yellow tint is gone
Reconnect in power cable
Worked for me. Good luck
MacOS had an update and after I installed that, the colors reverted to normal.

Change iOS status bar text color while dark mode is activated

With iOS 13 new dark mode feature, it now seems impossible for me to control the status bar text color in Xamarin Forms. Most of the solutions I find seem to be from before dark mode was introduced to iOS.
My application uses resources so that I can easily change the style of the whole app. Even in dark mode, the color of my navigation bar is not pleasant to read with white text. I need to set the color of the status bar to black, no matter what color mode the device has activated.
I've tried to set the colors manually in my navigation page, but it seems to be overriden by iOS color mode. This code works on Android:
BarTextColor = Color.Black;
BarBackgroundColor = (Color)App.Instance.Resources["PrimaryColor"];
I've tried setting true and false to UIViewControllerBasedStatusBarAppearance.
I've also tried all settings of Status Bar Style in Info.plist.
Does anyone know of a way to control this in Xamarin Forms since the release of Dark Mode?
Did you check this docs? NavigationPage Bar Translucency on iOS NavigationPage Bar Text Color Mode on iOS . Maybe translucency can solve your problem?
The problem was fixed by switching to Xamarin iOS SDK 13, it adds an item to the StatusBarStyle enumeration.
More info here.

Changing UITabBarItem's selected Tint Color in iOS 10

I can't seem to change the tint color for selected UITabBarItem in iOS 10. It was working perfectly in iOS 9. I'm using Swift 2.x and have tried using self.tabBar.tintColor programmatically, and runtime attributes in storyboard as well.
Use like this;
UITabBarItem.appearance().setTitleTextAttributes([NSForegroundColorAttributeName: UIColor.redColor()], forState:.Selected)
Thanks

Change color of selected NSTabView Tab for OS X App

I'm working on an OS X application with Xcode and swift, and I am trying to get the color of the clicked NSTabView to change from it's default blue color. I can't seem to find much information on this, and when I do it is really old. It seems like it is much easier to make changes with iOS, but I specifically need changes on my OS X App in Swift.
Can you not do it within Interface Builder?
I have done that by changing the colour of window where I am switching from one tab to other.
[windowMain setBackgroundColor:[NSColor grayColor]];
or any colour.

Xcode bug? Changing shadow opacity changes background highlight as well

I'm running Xcode version 4.4.1 and I've read that there are some issues with changing shadow settings and text highlight color automatically changing with it. I want to change the shadow for a button and I can't seem to do so without the whole button background color changing. This can probably be fixed in the code but I want to be able to do this in the xib. Any ideas how to get around this bug?
It is a bug in Xcode, don't worry. It's been around for a few versions now. Simply change the background color again after setting the shadow color.

Resources