make transparent navigation bar and transparent tab bar in ios 7. - ios

how to create a transparent tab bar and navigation bar in ios 7 ? i tried setting
[[UITabBar appearance]setBarTintColor:[UIColor clearColor]];
but then a translucent tab bar appears. then i tried setting the translucency property of tab bar to NO
[self.tabBarController.tabBar setTranslucent:NO];
also the tab button is always highlighted in blue color. Even though i put different color images .
has anyone had similar experiences ? observed only in ios7

By default the selected tab button item has highlighted blue color and unselected has gray color. This behavior is a independent of tool bar item image color.
Example to change the selection color for tab Bar item
self.tabController.tabBar.tintColor = [UIColor redColor];

Related

iPhone not displaying accurate color

I'm working on a simple WebView app where I want the Statusbar to be the same color as the Taskbar from the website.
What I did was setting the background color of the View to the same color as the Taskbarby using the color picker. However when I run the app I'm getting a completely different color as you can see below:
These are the settings for the view:
The color code of the Taskbar is: #242424
However the color code the statusbar gets is: #1b1b1b even though I've selected the #242424 color via the color picker.
Why does it seem to do this?
It has to do with the translucency of the bar, as explained in these answers.
You also have to consider that the view extends under the translucent bar, and the view's background color will slightly change the appearance of any translucent bars above it, because of the visual effect used by the bar.
You may want to not set a specific color for the status bar, and let it inherit the bar's color, to give the task bar and status bar a uniform appearance.
Xcode Colour picker not pick exact same colour. Try this macro(set your colour code)
#define CODE_1_COLOR [UIColor colorWithRed:(140.0f/255.0f) green:(132.0f/255.0f) blue:(124.0f/255.0f) alpha:1.0f]
Also take care about Translucent property in case of navigation bar
[[UINavigationBar appearance] setTranslucent:NO];

How to set delegate to UIActivityViewController of QLPreviewController?

My application's navigation bar buttons color is white..
So I used below code to set color for entire application.
[[UIBarButtonItem appearance] setTintColor:fontColor];
QLPreviewContoller by default having option for UIActivityViewController so while opening MailComposer from UIActivityViewController I am getting white navigation bar button because I have used appearance
Attached screenshot for reference.
Can anybody help me in solving this issue?
Issue is not with QLPreviewController or UIActivityViewController. May be you don't set any colour for navigationBar, by default navigation bar will take white colour as background colour and you are also setting white colour for bar buttons so result will be like above image only. Try to set colour navigation bar using appearance then you can see bar button items.

UIActivityViewController compose window navigation bar color

When choosing a sharing option from the activity view such as message or email composing, the navigation bar (or is it a toolbar) and title colours look terrible. The title and status bar items are almost unreadable.
I have tried to change navigation bar and toolbar tint, barTint, background and title colours with no luck. Also tried to toggle between default and light styles.
Changing navigation bar tint colours on the main view itself also renders no difference.
Any idea on how to solve this?
Are you using a custom background image for the navigationbar? If so, you need to set the background image to nil before presenting the compose sheet. Something like:
[[UINavigationBar appearance] setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
Otherwise,
[[UINavigationBar appearance] setBarTintColor:[UIColor WhiteColor]];
should work.

Status bar color is different to UINavigationBar color

I have a custom UINavigationBar which I am using to remove the gradient of the navbar in iOS 6. Though the color of the status bar is equal to the color of the screen opposed to the color of the bar
Is there a way to make them the same color or at least make the status bar black. My problem is in ios7.
Also if I change the style of the UINavigationBar translucent to NO like this:
self.navigationController.navigationBar.translucent = NO;
Then the status bar goes completely black with no writing on it.
In your project info plist, change UIViewControllerBasedStatusBarAppearance value, if there is no, then add this key.

Is is possible to tint the TabBar without tinting the icons?

My app designers want a silver tab bar, which I've implemented by setting the tint color, and this works fine:
But this is also tinting the tab bar icons in such a way that they're hard to see, so I'd like to be able to control the color of these icons, but I can't figure out how. I've tried using black icons and gray icons, but they appear the same in the tab bar. Here are the source images:
But these both appear exactly the same in the tab bar, namely, the same silver color as the tab bar itself, or blue, if the tab is selected. (I'm showing the home icons here, but the same is true of the other icons.)
So how can I tint the tab bar but control the icon color? And can you have full color icons in the tab bar?
You can't change tint color of UITabBarItem icon, but you can set images to selected and unselected states:
[self.tabBarItem setFinishedSelectedImage:[UIImage imageNamed#"home-selected"]
withFinishedUnselectedImage:[UIImage imageNamed#"home-unselected"];

Resources