0

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) enter image description here

Constraints:

enter image description here

Simulator:

enter image description here

rmaddy
  • 314,917
  • 42
  • 532
  • 579
Jessica
  • 9,379
  • 14
  • 65
  • 136

1 Answers1

0

Probably this is because of view's margins. Please check out this answer for a good explanation of what margins are, and how to deal with them.

Community
  • 1
  • 1
Nikolay Mamaev
  • 1,474
  • 1
  • 12
  • 21