Search code examples
cocoa-touchuiimageuisegmentedcontrolgaps-in-visuals

UISegmentedControl without gaps between buttons


I want to remove splits (gaps) between buttons in UISegmentedControl. Segmented control is created with three images, each 60 pixels width, control is 180 pixels width. Style of segmented control is UISegmentedControlStyleBar.

But it still looks like this: enter image description here

I have tried to set control width to 170 pixels or even less with no effect.

Thank you for your help. Martin


Solution

  • you need to create your own customized view.