UIButton Push State Light Flare?

Discussion in 'iOS Programming' started by Darkroom, Jun 21, 2009.

  1. Darkroom Guest

    Darkroom

    Joined:
    Dec 15, 2006
    Location:
    Montréal, Canada
    #1
    i would like to emulate that light flare effect of pushed Plain UIButtons in the UIToolBar for my custom buttons when pushed. it it possible to access this effect programatically without using UIToolBar?
     
  2. johnnyjibbs macrumors 68030

    johnnyjibbs

    Joined:
    Sep 18, 2003
    Location:
    London, UK
    #2
    UIButton has a property called something like showsHighlightWhenTouched which you can set to YES. It can also be turned on using Interface Builder.

    I think plain (non-bordered) buttons on toolbars have it set to YES automatically, otherwise the default value is NO. Setting it to YES should give you what you need.
     

Share This Page