Skip to content

Commit

Permalink
截取片段 适配iPhoneX
Browse files Browse the repository at this point in the history
  • Loading branch information
changsanjiang committed Apr 13, 2018
1 parent 2b164ca commit 3c063ed
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions SJVideoPlayer/SJLightweightControlLayer.m
Original file line number Diff line number Diff line change
Expand Up @@ -714,8 +714,7 @@ - (void)setEnableFilmEditing:(BOOL)enableFilmEditing {
make.trailing.offset(0);
make.centerY.offset(0);
}];
_rightControlView.disappearType = SJDisappearType_Transform;
_rightControlView.disappearTransform = CGAffineTransformMakeTranslation(_rightControlView.intrinsicContentSize.width, 0);
_rightControlView.disappearType = SJDisappearType_Alpha;

if ( !self.videoPlayer.controlLayerAppeared ) [_rightControlView disappear];
}
Expand Down
Binary file not shown.

0 comments on commit 3c063ed

Please sign in to comment.