Unverified Commit 20234831 authored by 谭真's avatar 谭真 Committed by GitHub

Merge pull request #1378 from yu-jianfeng/feature/upgradeiOS14

[Fix] Xcode12 构建,iOS14运行,裁切手势不生效问题
parents 2c131b5a 3167c4e8
......@@ -61,7 +61,7 @@
strongSelf.imageProgressUpdateBlock(progress);
}
}];
[self addSubview:self.previewView];
[self.contentView addSubview:self.previewView];
}
- (void)setModel:(TZAssetModel *)model {
......@@ -418,9 +418,9 @@
[_playButton setImage:[UIImage tz_imageNamedFromMyBundle:@"MMVideoPreviewPlay"] forState:UIControlStateNormal];
[_playButton setImage:[UIImage tz_imageNamedFromMyBundle:@"MMVideoPreviewPlayHL"] forState:UIControlStateHighlighted];
[_playButton addTarget:self action:@selector(playButtonClick) forControlEvents:UIControlEventTouchUpInside];
[self addSubview:_playButton];
[self addSubview:_iCloudErrorIcon];
[self addSubview:_iCloudErrorLabel];
[self.contentView addSubview:_playButton];
[self.contentView addSubview:_iCloudErrorIcon];
[self.contentView addSubview:_iCloudErrorLabel];
}
- (void)setModel:(TZAssetModel *)model {
......@@ -544,7 +544,7 @@
__strong typeof(weakSelf) strongSelf = weakSelf;
[strongSelf signleTapAction];
}];
[self addSubview:_previewView];
[self.contentView addSubview:_previewView];
}
- (void)setModel:(TZAssetModel *)model {
......
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