Open markst opened 10 years ago
When QMBParallaxScrollViewController's view frame changes the subviews do not update accordingly.
One solution is to update the foregroundScrollView's frame upon view frame observer change:
if ([keyPath isEqualToString:@"frame"]) [self.foregroundScrollView setFrame:(CGRect){{0,0},self.view.frame.size}];
or set the _foregroundScrollView's auto resizing mask
_foregroundScrollView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
When QMBParallaxScrollViewController's view frame changes the subviews do not update accordingly.
One solution is to update the foregroundScrollView's frame upon view frame observer change:
or set the _foregroundScrollView's auto resizing mask