iOS AutoLayout LayoutGuide disappears on Memory Warning

92 Views Asked by At

I'm having some issues with the _UILayoutGuide that dictates the top and bottom of the screen in my app home screen. Everything works fine until a Memory Warning is triggered in a ViewController that's further in the navigation stack and I try to go back to home. For some reason the top and bottom _UILayoutGuide disappear and the constraints that where attached to them just break, making the view either go up or down.

Is there some way to prevent this? alternatives? Where can I hook the view if there's no other option?

Thanks in advance.

0

There are 0 best solutions below