Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

chenks

macrumors 65816
Original poster
Oct 23, 2007
1,214
545
UK
i've done something and the "done" button i have in the top corner is no longer blue.

no matter what i do i can't seem to make it blue again, even removing and re-adding the button.

any ideas how to get this to be blue again?
 

Attachments

  • Screen shot 2009-12-13 at 16.48.07.png
    Screen shot 2009-12-13 at 16.48.07.png
    51.5 KB · Views: 124
I had that same problem one time, however I removed the code to create the button, cleaned targets, built it. Then re added the button and it was fine.
 
I had that same problem one time, however I removed the code to create the button, cleaned targets, built it. Then re added the button and it was fine.

when you say "removed the code to create the button" do you that you simply deleted the button in IB?

also, what do you mean by "cleaned targets" ?
 
Clean targets means Build -> Clean All Targets. It deleted the executable and completely recompiles it next time you compile. You can also delete the "build" folder in your xcode project too. Don't do this while compiling.
 
By removing the code, I had created the button in code. In IB make sure you check the System style of done in the inspector.
 
ok still can't get this resolved.

removed the button in IB, did the clean targets, re-added the button and it's still black.

if i create a new app and add a "done" button, it is blue by default.
 
Do you have a tint color on the toolbar or navigation bar that you are using in IB?

it's as shown on the image at the top of the thread.
toolbar that the "done" button is sitting on has tint and background set to "black".

i assume then any button sitting on the toolbar is affected by its colour and tint?
 
That is what im thinking. If you remove the tint and change the background color to clear. Then set the toolbar or navbar to a uibarstyleblackopaque.
 
that sucks then.

what if i want a blue bar with a red button, how would i achieve that ?

no one is chained to using apple's built-in UI, you certainly can create your own. however, you may want to check out erica sadun's book. i don't have it in front of me now to reference, but she may have written about some tricks that you would find useful.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.