Note that there are some explanatory texts on larger screens.

plurals
  1. POUIScrollview Horizontal Offset changes when I trigger a segue from storyboard
    text
    copied!<p>When I load my scrollview initially it works fine. However when I click a menu button to display a view modally and then dismiss the view it shifts the entire scrollview to the left. What used to be the start of the scrollview is now off the screen to the left and the end of the scrollview has some added white space.</p> <p>I've check the contentoffset before and after the seque and it stays the same it just appears that the contents of the uiscrollview have shifted entirely to the left.</p> <p>I'm using autolayout to create my scrollview. In my scrollview I have a container view which holds several views in it. the container view defines the size of the scrollview by how many subviews I put into the container view.</p> <p>Leavign ScrollView Subviews UIView: 0x1f088040; frame = (0 0; 1597.5 192.5); layer = CALayer: 0x1f0552c0</p> <p>View Did Appear ScrollView Subviews UIView: 0x1f088040; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1f0552c0</p> <p><strong>Even more weird is when I set the container view back to it's orginal size it doesn't stay there as soon as I start scrolling it has the correct initial value but then resets back to the wrong value.</strong></p> <p>In prepareForSegue:</p> <p>Leaving ScrollView Subviews UIView: 0x1e06a3a0; frame = (0 0; 1597.5 192.5); layer = CALayer: 0x1e03a290</p> <p>In ViewDidAppear before I set it back to 0 0</p> <p>View Did Appear ScrollView Subviews UIView: 0x1e06a3a0; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1e03a290</p> <p>In View Did Scroll</p> <p>view Did Scroll ScrollView Subiews UIView: 0x1e06a3a0; frame = (0 0; 1597.5 192.5); layer = CALayer: 0x1e03a290</p> <p>view Did Scroll ScrollView Subviews UIView: 0x1e06a3a0; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1e03a290</p> <p>view Did Scroll ScrollView Subviews UIView: 0x1e06a3a0; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1e03a290</p> <p>view Did Scroll ScrollView Subviews UIView: 0x1e06a3a0; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1e03a290</p> <p><strong>It always seems to be offsets of multiples of 160</strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload