We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f2abd36 + 81a05b0 commit 0d59e4eCopy full SHA for 0d59e4e
CTAssetsPickerController/CTAssetItemViewController.m
@@ -109,7 +109,12 @@ - (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIVi
109
[super viewWillTransitionToSize:size withTransitionCoordinator:coordinator];
110
111
[coordinator animateAlongsideTransition:^(id<UIViewControllerTransitionCoordinatorContext> context) {
112
- [self.scrollView updateZoomScalesAndZoom:YES];
+
113
+ // Ensure that a future call to updateConstraintsIfNeeded calls updateConstraints.
114
+ [self.scrollView setNeedsUpdateConstraints];
115
+ [self.scrollView updateConstraintsIfNeeded];
116
117
+ [self.scrollView updateZoomScalesAndZoom:YES];
118
} completion:nil];
119
}
120
0 commit comments