0

Is there anyone encounter this problem on Xcode 9.2? enter image description here

I setup the UITableView as shown in the image above. And added a UILabel below the UITableView for demonstration. The image above is in "portrait" and the constraints work fine and ok.

enter image description here When I change the orientation to "landscape" the constraints seems didn't work on the UITableViewCell although no errors is shown. While the UILabel below the table readjusted as expected it should be.

Anyone can explain this? and how could I possible fix this? It's kind of annoying...

Xcode version: 9.2

SquareBox
  • 823
  • 1
  • 10
  • 22
  • Please try using only 3 constraints, Leading space, trailing space and Align center Y to superview – PPL Mar 23 '18 at 06:10
  • tried it didn't work :( – SquareBox Mar 23 '18 at 06:13
  • any way can you please send me code? so I can do it for you and revert back – PPL Mar 23 '18 at 06:21
  • i created a dummy project with only storyboard, so there's no code. I'm not sure what you mean "code" – SquareBox Mar 23 '18 at 06:33
  • I'm not sure how can I send you the whole dummy project. BTW when I run the table works fine. The only problem is in the xCode where the UI of the UITableViewCell isn't redrawing when changing the orientation or device (iPad to iPhone) – SquareBox Mar 23 '18 at 06:43

0 Answers0