Commit 9197b979 authored by yuzheng's avatar yuzheng

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

parent c176ac4a
...@@ -224,6 +224,8 @@ ...@@ -224,6 +224,8 @@
self.imageRequestID = 0; self.imageRequestID = 0;
} }
} networkAccessAllowed:YES]; } networkAccessAllowed:YES];
[self configMaximumZoomScale];
} }
- (void)recoverSubviews { - (void)recoverSubviews {
...@@ -257,9 +259,8 @@ ...@@ -257,9 +259,8 @@
[self refreshScrollViewContentSize]; [self refreshScrollViewContentSize];
} }
- (void)setAllowCrop:(BOOL)allowCrop { - (void)configMaximumZoomScale {
_allowCrop = allowCrop; _scrollView.maximumZoomScale = _allowCrop ? 4.0 : 2.5;
_scrollView.maximumZoomScale = allowCrop ? 4.0 : 2.5;
if ([self.asset isKindOfClass:[PHAsset class]]) { if ([self.asset isKindOfClass:[PHAsset class]]) {
PHAsset *phAsset = (PHAsset *)self.asset; 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