Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
dz_TZImagePickerController
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shuijing
dz_TZImagePickerController
Commits
825878c9
Commit
825878c9
authored
Oct 28, 2020
by
yuzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复playButton可能被挡住的问题
parent
333e3324
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
...erController/TZImagePickerController/TZPhotoPreviewCell.m
+2
-1
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
View file @
825878c9
...
...
@@ -418,6 +418,7 @@
[
_playButton
setImage
:[
UIImage
tz_imageNamedFromMyBundle
:
@"MMVideoPreviewPlay"
]
forState
:
UIControlStateNormal
];
[
_playButton
setImage
:[
UIImage
tz_imageNamedFromMyBundle
:
@"MMVideoPreviewPlayHL"
]
forState
:
UIControlStateHighlighted
];
[
_playButton
addTarget
:
self
action
:
@selector
(
playButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
_playButton
.
frame
=
CGRectMake
(
0
,
64
,
self
.
tz_width
,
self
.
tz_height
-
64
-
44
);
[
self
.
contentView
addSubview
:
_playButton
];
[
self
.
contentView
addSubview
:
_iCloudErrorIcon
];
[
self
.
contentView
addSubview
:
_iCloudErrorLabel
];
...
...
@@ -475,7 +476,7 @@
self
.
playerLayer
=
[
AVPlayerLayer
playerLayerWithPlayer
:
self
.
player
];
self
.
playerLayer
.
backgroundColor
=
[
UIColor
blackColor
].
CGColor
;
self
.
playerLayer
.
frame
=
self
.
bounds
;
[
self
.
layer
addSublayer
:
self
.
playerLayer
];
[
self
.
contentView
.
layer
addSublayer
:
self
.
playerLayer
];
[
self
configPlayButton
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
pausePlayerAndShowNaviBar
)
name
:
AVPlayerItemDidPlayToEndTimeNotification
object
:
self
.
player
.
currentItem
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment