"done" button no longer blue

Discussion in 'iOS Programming' started by chenks, Dec 13, 2009.

  1. chenks
    Expand Collapse
    macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #1
    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?
     

    Attached Files:

  2. KoolStar
    Expand Collapse
    macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #2
    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.
     
  3. chenks
    Expand Collapse
    thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #3
    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" ?
     
  4. TodVader
    Expand Collapse
    macrumors 6502a

    TodVader

    Joined:
    Sep 27, 2005
    Location:
    Quebec, Canada
    #4
    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.
     
  5. KoolStar
    Expand Collapse
    macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #5
    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.
     
  6. chenks
    Expand Collapse
    thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #6
    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.
     
  7. KoolStar
    Expand Collapse
    macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #7
    Do you have a tint color on the toolbar or navigation bar that you are using in IB?
     
  8. chenks
    Expand Collapse
    thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #8
    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?
     
  9. KoolStar
    Expand Collapse
    macrumors demi-god

    KoolStar

    Joined:
    Oct 16, 2006
    Location:
    Kentucky
    #9
    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.
     
  10. Darkroom
    Expand Collapse
    Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #10
    your assumption is correct.
     
  11. chenks
    Expand Collapse
    thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #11
    that sucks then.

    what if i want a blue bar with a red button, how would i achieve that ?
     
  12. Darkroom
    Expand Collapse
    Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #12
    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.
     
  13. chenks
    Expand Collapse
    thread starter macrumors 6502a

    chenks

    Joined:
    Oct 23, 2007
    Location:
    UK
    #13
    as a workaround that is OK, but it seems a strange limitation of the IB if that is the only solution.
     

Share This Page