0

I'm creating a very simple project, but I can't make the constraints work perfectly both in iPhones and iPad, there's this weird behavior when I execute the app in an iPad simulator (images below).

I read that there's some differences in the margins between iPhones and iPad.

It's seems like the problem is in the View Margins. I tried to put this code in my appDelegate:

UITableViewCell.appearance().preservesSuperviewLayoutMargins = true
UITableViewCell.appearance().contentView.preservesSuperviewLayoutMargins = true

I found that in UITableViewCell with autolayout left margin different on iPhone and iPad, but it doesn't work!

enter image description here

enter image description here

enter image description here

mkrieger1
  • 19,194
  • 5
  • 54
  • 65
Leonardo Lobato
  • 1,047
  • 2
  • 9
  • 22

1 Answers1

1

Silly Mistake, I didn't set in DEVICES to Universal.

enter image description here

Leonardo Lobato
  • 1,047
  • 2
  • 9
  • 22