How to prevent backgroundColor of UISegmentedControl bleeding beyond segmented border

Set the segment control’s layer’s corner radius to 4.0. It should help. You may need to import QuartzCore to be able to access the layer’s properties.

segment.layer.cornerRadius = 4.0;
segment.clipsToBounds = YES;

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)