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
7ec52b10
Commit
7ec52b10
authored
Nov 23, 2017
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
视频预览和gif预览页toolbar适配iPhoneX
parent
b8fee9bf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
TZImagePickerController/TZImagePickerController/TZGifPhotoPreviewController.m
...ler/TZImagePickerController/TZGifPhotoPreviewController.m
+2
-1
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
...troller/TZImagePickerController/TZVideoPlayerController.m
+5
-2
No files found.
TZImagePickerController/TZImagePickerController/TZGifPhotoPreviewController.m
View file @
7ec52b10
...
@@ -98,8 +98,9 @@
...
@@ -98,8 +98,9 @@
_previewView
.
frame
=
self
.
view
.
bounds
;
_previewView
.
frame
=
self
.
view
.
bounds
;
_previewView
.
scrollView
.
frame
=
self
.
view
.
bounds
;
_previewView
.
scrollView
.
frame
=
self
.
view
.
bounds
;
CGFloat
toolBarHeight
=
[
TZCommonTools
tz_isIPhoneX
]
?
44
+
(
83
-
49
)
:
44
;
_toolBar
.
frame
=
CGRectMake
(
0
,
self
.
view
.
tz_height
-
toolBarHeight
,
self
.
view
.
tz_width
,
toolBarHeight
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
44
-
12
,
0
,
44
,
44
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
44
-
12
,
0
,
44
,
44
);
_toolBar
.
frame
=
CGRectMake
(
0
,
self
.
view
.
tz_height
-
44
,
self
.
view
.
tz_width
,
44
);
}
}
#pragma mark - Click Event
#pragma mark - Click Event
...
...
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
View file @
7ec52b10
...
@@ -119,10 +119,13 @@
...
@@ -119,10 +119,13 @@
-
(
void
)
viewDidLayoutSubviews
{
-
(
void
)
viewDidLayoutSubviews
{
[
super
viewDidLayoutSubviews
];
[
super
viewDidLayoutSubviews
];
CGFloat
statusBarHeight
=
[
TZCommonTools
tz_statusBarHeight
];
CGFloat
statusBarAndNaviBarHeight
=
statusBarHeight
+
self
.
navigationController
.
navigationBar
.
tz_height
;
_playerLayer
.
frame
=
self
.
view
.
bounds
;
_playerLayer
.
frame
=
self
.
view
.
bounds
;
_playButton
.
frame
=
CGRectMake
(
0
,
64
,
self
.
view
.
tz_width
,
self
.
view
.
tz_height
-
64
-
44
);
CGFloat
toolBarHeight
=
[
TZCommonTools
tz_isIPhoneX
]
?
44
+
(
83
-
49
)
:
44
;
_toolBar
.
frame
=
CGRectMake
(
0
,
self
.
view
.
tz_height
-
toolBarHeight
,
self
.
view
.
tz_width
,
toolBarHeight
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
44
-
12
,
0
,
44
,
44
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
44
-
12
,
0
,
44
,
44
);
_
toolBar
.
frame
=
CGRectMake
(
0
,
self
.
view
.
tz_height
-
44
,
self
.
view
.
tz_width
,
44
);
_
playButton
.
frame
=
CGRectMake
(
0
,
statusBarAndNaviBarHeight
,
self
.
view
.
tz_width
,
self
.
view
.
tz_height
-
statusBarAndNaviBarHeight
-
toolBarHeight
);
}
}
#pragma mark - Click Event
#pragma mark - Click Event
...
...
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