Skip to content

Commit 2023483

Browse files
authored
Merge pull request #1378 from yu-jianfeng/feature/upgradeiOS14
[Fix] Xcode12 构建,iOS14运行,裁切手势不生效问题
2 parents 2c131b5 + 3167c4e commit 2023483

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ - (void)configSubviews {
6161
strongSelf.imageProgressUpdateBlock(progress);
6262
}
6363
}];
64-
[self addSubview:self.previewView];
64+
[self.contentView addSubview:self.previewView];
6565
}
6666

6767
- (void)setModel:(TZAssetModel *)model {
@@ -418,9 +418,9 @@ - (void)configPlayButton {
418418
[_playButton setImage:[UIImage tz_imageNamedFromMyBundle:@"MMVideoPreviewPlay"] forState:UIControlStateNormal];
419419
[_playButton setImage:[UIImage tz_imageNamedFromMyBundle:@"MMVideoPreviewPlayHL"] forState:UIControlStateHighlighted];
420420
[_playButton addTarget:self action:@selector(playButtonClick) forControlEvents:UIControlEventTouchUpInside];
421-
[self addSubview:_playButton];
422-
[self addSubview:_iCloudErrorIcon];
423-
[self addSubview:_iCloudErrorLabel];
421+
[self.contentView addSubview:_playButton];
422+
[self.contentView addSubview:_iCloudErrorIcon];
423+
[self.contentView addSubview:_iCloudErrorLabel];
424424
}
425425

426426
- (void)setModel:(TZAssetModel *)model {
@@ -544,7 +544,7 @@ - (void)configPreviewView {
544544
__strong typeof(weakSelf) strongSelf = weakSelf;
545545
[strongSelf signleTapAction];
546546
}];
547-
[self addSubview:_previewView];
547+
[self.contentView addSubview:_previewView];
548548
}
549549

550550
- (void)setModel:(TZAssetModel *)model {

0 commit comments

Comments
 (0)