tags:

views:

24

answers:

4

Hi there,

Quick question! I am trying to customise the topbar of an iphone application (not a website) and I have been told that it is impossible? I have attached an example of what I am trying to achieve. At the very least is it possible to change the background colour to orange?

Any advice on this would be great!

Thanks in advance! Decbrad![alt text][1]

A: 

If you are talking about the very top bar (with the wifi-strength etc) then it's impossible following the AppStore-rules. You can change it to black only.

It's however possible with various jailbreak-tools, but then you can't publish your app to app store.

Accatyyc
If he's talking about the status bar which shows the time, you're correct (although he can hide that of course, and display something else), but I think he's talking about a navigation bar or tool bar.
h4xxr
If you are taking about the statusbar you can choose between original, hiding it, black and translucent black. You could try using translucent black and putting orange color in the view underneath it. I think thats the closest you'll get to colouring it..
Larsaronen
Let's hope he is. I figured your answer was enough if that's the case. :)
Accatyyc
A: 

So, I'm guessing here you could be talking about a UINavigationBar or a UIToolBar, but that doesn't really matter because yes, you can change the colour of either.

In Interface Builder, select the UINavigationBar (or UIToolBar) and under properties look at "tint". This will be set to "default" initially. You can then pick any colour (even orange!) as the tint colour, and there you go!

h4xxr
A: 

You can do so by using the tintColor property of the navigation bar. I have implemented and checked it. its working.

self.navigationController.navigationBar.tintColor=[UIColor orangeColor];

hAPPY cODING...

Suriya
A: 

Thanks for all your advice! Much appreciated!

decbrad