I recently updated my project to iOS 7.1. During the switch, nothing changed except for one thing. In iOS 7, within my app delegate, I set my window tint color to blue. On a view controller, I have a UIStepper that I set the tint color as white in both Interface Builder and programmatically. Prior to updating, the stepper was tinted white while everything else was blue as it should have been. After being updated, however, the stepper remains the tint color of my app. Does anybody know why this happens, or how to fix it? Any insight is appreciated. Thank you.
I solved the problem by clicking on my UIStepper in Interface Builder, clicking on the first pane of the item inspector, and changing global tint to white.
Related
When I first created my storyboard all the elements on each UIViewController showed up just fine; however, after opening up my storyboard again the view controllers have turned all blue.
Is this some kind of issue with Xcode or is there a setting that turns my view controllers blue?
I have checked each subview's (UIViews, UIImageViews, etc.) tint color and background color.
I think you have to tap each of them to give them the tabbar icon, then it will become normal
Rashwan here says that having to add an image, while a good thing, is also a Xcode 8.0 bug that it turns your entire screen blue.
I added an image to the tab bar and it make my screen visible. However, the area where I added an image in the tab bar is now blue and it doesn't display properly when run on the simulator.
I think the solution is to upgrade Xcode past 8.0.
My app has separate code and bundle (xib are to be downloaded separately). I can't change my code yet and I have to change xib file.
On ios 7, I can see correctly like this when I change in my xib.
With that setting, on my ios 6, selected color and unselected color become same (black). User can't differentiate.
How can I change in my xib so that behaviour is correct? (I can't change my code for now. I can only change xib). If Tint color is default, it is okay but I still need it to be black color.
you are setting tint color, which is correct approach. It’s background color is white that means it’s default color and you are setting black color as tint color so it is also fine.
So make sure that your SegmentControl’s style is plain and state is not checked beside Momentary. Make sure that state is unchecked. If it is checked then uncheck it. You can check all this under attribute inspector with your segmented control selected.
In 8.3 Simulator I have UIViewController which contains a UISegmentedControl. The segmented control's appearance is managed by an appearance proxy. If I display this custom controller in a UIPopoverController, the segmented control's tint is ALWAYS white. Cant change it via proxy or directly. If I place the view controller in a regular modal, the segmented control's tint behaves how it should. All other segmented controls in the app obey the appearance proxy. It displays perfectly fine in iOS 8.2 Simulator. WTF?
Language = swift
Xcode 6.3
targeting >= 8.1
Tint adjustment mode is by default UIViewTintAdjustmentModeAutomatic, if you want to set specific tint colour, please make sure you have changed the tint adjustment mode to normal.
[[UISegmentedControl appearance] setTintAdjustmentMode:UIViewTintAdjustmentModeNormal];
I'm pretty sure this is an 8.3 bug since it doesn't exist in 8.2. My solution is to change the application window's tintcolor before popping up the popover. For whatever reason, the segmented control doesn't inherit the correct tint, and cant be changed inside a popover
I try to change color of navigation bar but although I set the color as #33A99B, the color is shown as #339B89 in the simulator.
How can I set real color?
I tried with what you mentioned and it was working fine.
Below is how and where i set color.
You may be doing something wrong. Please check it and revert.
When I set the bottom UIToolbar to black on the view controller, it appears as a more greyish colour (the same thing happens with other colours--it sort of fades them out). What I assume is happening is that in iOS7 the toolbar seems to adapt the colour of what is beneath it (currently white) which makes for the duller colour.
I've updated the view controller so that the "extended edges" options are turned off but still get this effect. Has anyone else had this issue yet?
UPDATE:
I resolved the issue by setting the background colour of the UIToolbar to black (something I haven't had to do in previous versions of iOS). If anyone can think of a better solution, let me know.
All tool- and navigation bars in iOS 7 have a translucent property.
This causes the effect, where the background shines through in blurred form (just like the control center).
Just set YourToolbar.translucent = NO;.
SET the t*ranslucent property to NO*:-
IN iOS 7 you need to set the barTintColor Property-
UIToolbar *doneToolbar=[[UIToolbar alloc]initWithFrame:CGRectMake(0, 584, 320, 44)];
doneToolbar.translucent=NO;
doneToolbar.barTintColor=[UIColor blackColor];
[self.view addSubview:doneToolbar];
I have used it its working fine...
setting the background color instead of the bar tint worked for me
I set the bar tint to default, the translucent property to NO and the background to the color i wanted and it worked for me.