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.
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.
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.
Leavign ScrollView Subviews UIView: 0x1f088040; frame = (0 0; 1597.5 192.5); layer = CALayer: 0x1f0552c0
View Did Appear ScrollView Subviews UIView: 0x1f088040; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1f0552c0
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.
In prepareForSegue:
Leaving ScrollView Subviews UIView: 0x1e06a3a0; frame = (0 0; 1597.5 192.5); layer = CALayer: 0x1e03a290
In ViewDidAppear before I set it back to 0 0
View Did Appear ScrollView Subviews UIView: 0x1e06a3a0; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1e03a290
In View Did Scroll
view Did Scroll ScrollView Subiews UIView: 0x1e06a3a0; frame = (0 0; 1597.5 192.5); layer = CALayer: 0x1e03a290
view Did Scroll ScrollView Subviews UIView: 0x1e06a3a0; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1e03a290
view Did Scroll ScrollView Subviews UIView: 0x1e06a3a0; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1e03a290
view Did Scroll ScrollView Subviews UIView: 0x1e06a3a0; frame = (-480 0; 1597.5 192.5); layer = CALayer: 0x1e03a290
It always seems to be offsets of multiples of 160