Search code examples
iosxcodeios9xcode7uistackview

changing property contentsGravity in transform-only layer, will have no effect


I started to create a very simple tic-tac-toe game. The main goal is to make the view proportional to all screen sizes of all iOS devices. So I put the image on a ViewController, make it full size of screen and then I put it into a Stack View. I've added constrains to this Stack View 0 to all sides. And when I ran the simulator then everything looks good. But I receive a message in console panel. What does it mean?

screenshot


Solution

  • It could happen because you changed the Mode attribute of the StackView:

    enter image description here

    I got this warning when I set Mode to Aspect Fit.