0

I am pretty new to styling/Constraints/Auto-Layout in iOS. I am having a problem that when I apply constrains to one of my ViewControllers I get black "bars" around the edges.

Here is what it looks like in the story board:

enter image description here

Here is what it looks like on the phone:


enter image description here

Question

How do I fix this?

Edit

I know this is an issue with constrains because when I don't use constraints it works perfectly fine.

Community
  • 1
  • 1
zoecarver
  • 5,523
  • 2
  • 26
  • 56

1 Answers1

1

Remove [self.view setTranslatesAutoresizingMaskIntoConstraints:NO] in your DateModificationViewController

J.CHE
  • 101
  • 3