UISegmentedControl custom background image

I have UINavigationBar setup as image – some wood texture. I want to insert UISegmentedControl with 4 buttons on that bar. Buttons should have same texture with slightly changed tint.

One solution would be to change tint alpha of buttons background color, so that texture in background can get trough, but as I set alpha for tint in IB it doesn’t save value, it always gets back to value 1.

  • Segmented control, change tint opacity, but not border
  • ios7 images inUISegmentedControl not scaling
  • Customizing Left & Right UISegmentedControl Buttons
  • Get frame from certain UISegmentedControl index?
  • How to add the UISegmentedControl in UINavigationBar?
  • Toolbar with “Previous” and “Next” for Keyboard inputAccessoryView
  • I cant get UISegmentedControl to show background image, so finally gave up and decide to search for help…
    Effect that is desired is one in iBooks app, with buttons in Navigation Bar.
    Any link or small help would be appreciated..

    3 Solutions Collect From Internet About “UISegmentedControl custom background image”

    This post describes the steps involved and has sample code: http://idevrecipes.com/2010/12/13/wooduinavigation/


    a custom SegmentView that can specify two images(normal, clicked)

    Do not bother with one of those custom segmented control packages if you’re on iOS 5 or later.

    Per Dylan’s suggestion, use the Appearance functionality in iOS 5+.

    See the top answer here:
    Customizing Left & Right UISegmentedControl Buttons