iPad style navbar on iPhone app - iphone

Hey, on iPad the navigation bar is normally silver and on the iPhone it's normally blue. Is there any easy way to make the silver navbar on iPhone app?
Thanks!!

If you just want to change the color of your navigation bar, the easiest way to do this would be to add your navigation bar in IB, then click on the navigation bar's attributes panel. Change the tint color to whatever color you would like in there and it will show up accordingly on your app. Similarly, if you are adding the navigation bar programmatically, you should be able to set the tint color yourself with something along the lines of myNavBar.tintColor = [UIColor someColor];. I hope this helps.

As of iOS 5 this can be easily achieved without any manual tinkering. Read this up.

Related

Changing UIStatusBar color to specific color with RGB?

I want to change UIStatusBar color using with rgb. Is it possible?
I tried(but I failed)
UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.UIColor(...)
As far as I know, it's not possible. You can switch between .LightContent and .Default.
Take a look at this one as well : How to Change the status bar color using ios with swift on internet reachability?
This one applies to the color of the battery, network etc. You can set background color by setting one on the navigation bar or by placing view inside view controller if you don't use navigation bar.

iOS 7.0.3 Blur Effect Behind Navigation Bar

In iOS 7.0.0 using a translucent navigation bar in a UINavigationController added a nice blur effect to the content behind the bar but it seemed to change the color saturation of the navigation bar.
In iOS 7.0.3 it seems like the saturation issue is fixed but you don't get the blur effect anymore. The content behind the navigation bar is just shown as it is. Does anyone know if it's somehow possible to get the blur effect back or if it's possible to create the blur effect programmatically?

Why tab bar upper half's color is lighter than bottom half

I create a navigation tab bar on the bottom of iphone and use dark gray color as tint color. Every things is good except the upper half's color is a bit lighter than bottom half. I also didn't fix it by programmatically set background color and tint color in viewDidLoad. This problem happen both of simulator and my iphone 5
This effect was added by the system in the default way, not a bug or problem.
You can custom UITabBar in this way:
tabController.tabBar.backgroundImage = [UIImage imageNamed: #"TabBarBG"];
Not only reset the background color or tint color.Have a try.
That's the visual effect "gradient" added automatically by system. You can write a custom tab bar yourself to change the effect.
This is default behavior of tab bar.
However you may change this by setting bakgroundimage for tab bar.

Why does my UINavigationBar change colors when I run my app?

I'm building an iPad app using storyboards. In Interface Builder (XCode 4.5), the nav bar is the default (light grey) color...
However, when I run the app, it changes color to a dark grey...
Has anyone else had this problem? No matter what color I set it to in Interface Builder, it always ends up dark grey when I run it.
Thanks so much in advance for your wisdom!
In iOS 6 the status bar have the same color as the navigation bar.
You can customize that, according to the answers to this question:
How to change Statusbar on Modal Views iOS 6
You can colorize your navigation bar with the following line of code, just use it and you nav bar is always light gray:
[[navController navigationBar] setTintColor:[UIColor lightGrayColor]];
When you set the navigation bar color in interface builder, this only affects the view you get in IB itself, it is only a design help. The real color you have to set in code.

How to make tableview's content displayed under a transparent navigation bar?

How to make tableview's content displayed under a transparent navigation bar?
Like this:In "Photos" app, albums displayed under navigation bar.
Special thanks
If you use _rootNavigationController.navigationBar.barStyle = UIBarStyleBlackTranslucent; then set correct tableview frame thats it. If you are in xib dont forget to simulate the translucent navigation bar.
One way I have found to accomplish this is by shifting your tableview's superview up to have the origin at {0, 0}. However after researching more several people have said altering the superview (UIViewControllerWrapperView) is a bad idea. However I also have not found any information on why just changing the frame would create problems. I am shifting the superview right now and haven't found any problems related to it yet.
Might be you can set it like this:
[navigationBar setAlpha:0.5f];
For making the navigation bar transparent alone, you can check this post, How to make a Navigation bar transparent and fade out like in the photo app in the iPhone
Also check this How to set the transparency color for Toolbar and Navigation bar using MonoTouch?
I am not sure whether you can add the table view behind the navigation bar. You might have to add it as a subview of self.parentViewController.view.
Another way to do this is by hiding navigation bar and using a transparent tool bar in place of that. This can be added on top of the current view. The only problem is with the back button. You might have to use custom button for that.