Commit eb3e3ad4 authored by lhh's avatar lhh

iPhoneX 剪切图片,最小的时候会有上下的间隔,可上下拖动。

parent 6dd5579d
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#define iOS8Later ([UIDevice currentDevice].systemVersion.floatValue >= 8.0f) #define iOS8Later ([UIDevice currentDevice].systemVersion.floatValue >= 8.0f)
#define iOS9Later ([UIDevice currentDevice].systemVersion.floatValue >= 9.0f) #define iOS9Later ([UIDevice currentDevice].systemVersion.floatValue >= 9.0f)
#define iOS9_1Later ([UIDevice currentDevice].systemVersion.floatValue >= 9.1f) #define iOS9_1Later ([UIDevice currentDevice].systemVersion.floatValue >= 9.1f)
#define iOS11Later ([UIDevice currentDevice].systemVersion.floatValue >= 11.0f)
@protocol TZImagePickerControllerDelegate; @protocol TZImagePickerControllerDelegate;
@interface TZImagePickerController : UINavigationController @interface TZImagePickerController : UINavigationController
......
...@@ -113,6 +113,9 @@ ...@@ -113,6 +113,9 @@
_scrollView.delaysContentTouches = NO; _scrollView.delaysContentTouches = NO;
_scrollView.canCancelContentTouches = YES; _scrollView.canCancelContentTouches = YES;
_scrollView.alwaysBounceVertical = NO; _scrollView.alwaysBounceVertical = NO;
if (iOS11Later) {
_scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
[self addSubview:_scrollView]; [self addSubview:_scrollView];
_imageContainerView = [[UIView alloc] init]; _imageContainerView = [[UIView alloc] init];
......
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