We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UIScrollView doesn't automatically take into account contentSize changes on rotate, so can leave you at an offset that shows different content.
If you're using the boxProvider system, you can now use saveScrollOffset and restoreScrollOffset to keep things looking sensible after rotate.
boxProvider
saveScrollOffset
restoreScrollOffset
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)orient duration:(NSTimeInterval)duration { [super willRotateToInterfaceOrientation:orient duration:duration]; [self.scroller saveScrollOffset]; } - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)orient duration:(NSTimeInterval)duration { [super willAnimateRotationToInterfaceOrientation:orient duration:duration]; [self.scroller restoreScrollOffset]; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
UIScrollView doesn't automatically take into account contentSize changes on rotate, so can leave you at an offset that shows different content.
If you're using the
boxProvider
system, you can now usesaveScrollOffset
andrestoreScrollOffset
to keep things looking sensible after rotate.The text was updated successfully, but these errors were encountered: