I have a UISegmentedControl, in a static UITableViewCell. I'm added constraints on all 4 sides. I want the segmentedControl to have squared corners. I set it up in the storyboard to look like that, and it looks fine. But when I run it on the simulator, you can see the rounded edges. (I don't get any warnings.)
Storyboard: (This is how it should look)

Constraints:

Simulator:

 
     
     
    