Commit 9197b979 authored by yuzheng's avatar yuzheng

修复超宽图片可放大倍数不够的问题

parent c176ac4a
......@@ -224,6 +224,8 @@
self.imageRequestID = 0;
}
} networkAccessAllowed:YES];
[self configMaximumZoomScale];
}
- (void)recoverSubviews {
......@@ -257,9 +259,8 @@
[self refreshScrollViewContentSize];
}
- (void)setAllowCrop:(BOOL)allowCrop {
_allowCrop = allowCrop;
_scrollView.maximumZoomScale = allowCrop ? 4.0 : 2.5;
- (void)configMaximumZoomScale {
_scrollView.maximumZoomScale = _allowCrop ? 4.0 : 2.5;
if ([self.asset isKindOfClass:[PHAsset class]]) {
PHAsset *phAsset = (PHAsset *)self.asset;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment