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
8a652a57
Commit
8a652a57
authored
Sep 12, 2019
by
RayJiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复iOS13顶部留白的问题
parent
aa519070
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
5 deletions
+9
-5
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+2
-1
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+2
-1
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
...roller/TZImagePickerController/TZPhotoPreviewController.m
+3
-2
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
...troller/TZImagePickerController/TZVideoPlayerController.m
+2
-1
No files found.
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
8a652a57
...
@@ -782,9 +782,10 @@
...
@@ -782,9 +782,10 @@
CGFloat
tableViewHeight
=
0
;
CGFloat
tableViewHeight
=
0
;
CGFloat
naviBarHeight
=
self
.
navigationController
.
navigationBar
.
tz_height
;
CGFloat
naviBarHeight
=
self
.
navigationController
.
navigationBar
.
tz_height
;
BOOL
isStatusBarHidden
=
[
UIApplication
sharedApplication
].
isStatusBarHidden
;
BOOL
isStatusBarHidden
=
[
UIApplication
sharedApplication
].
isStatusBarHidden
;
BOOL
isFullScreen
=
self
.
view
.
tz_height
==
[
UIScreen
mainScreen
].
bounds
.
size
.
height
;
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
top
=
naviBarHeight
;
top
=
naviBarHeight
;
if
(
!
isStatusBarHidden
)
top
+=
[
TZCommonTools
tz_statusBarHeight
];
if
(
!
isStatusBarHidden
&&
isFullScreen
)
top
+=
[
TZCommonTools
tz_statusBarHeight
];
tableViewHeight
=
self
.
view
.
tz_height
-
top
;
tableViewHeight
=
self
.
view
.
tz_height
-
top
;
}
else
{
}
else
{
tableViewHeight
=
self
.
view
.
tz_height
;
tableViewHeight
=
self
.
view
.
tz_height
;
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
8a652a57
...
@@ -303,10 +303,11 @@ static CGFloat itemMargin = 5;
...
@@ -303,10 +303,11 @@ static CGFloat itemMargin = 5;
CGFloat
collectionViewHeight
=
0
;
CGFloat
collectionViewHeight
=
0
;
CGFloat
naviBarHeight
=
self
.
navigationController
.
navigationBar
.
tz_height
;
CGFloat
naviBarHeight
=
self
.
navigationController
.
navigationBar
.
tz_height
;
BOOL
isStatusBarHidden
=
[
UIApplication
sharedApplication
].
isStatusBarHidden
;
BOOL
isStatusBarHidden
=
[
UIApplication
sharedApplication
].
isStatusBarHidden
;
BOOL
isFullScreen
=
self
.
view
.
tz_height
==
[
UIScreen
mainScreen
].
bounds
.
size
.
height
;
CGFloat
toolBarHeight
=
[
TZCommonTools
tz_isIPhoneX
]
?
50
+
(
83
-
49
)
:
50
;
CGFloat
toolBarHeight
=
[
TZCommonTools
tz_isIPhoneX
]
?
50
+
(
83
-
49
)
:
50
;
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
top
=
naviBarHeight
;
top
=
naviBarHeight
;
if
(
!
isStatusBarHidden
)
top
+=
[
TZCommonTools
tz_statusBarHeight
];
if
(
!
isStatusBarHidden
&&
isFullScreen
)
top
+=
[
TZCommonTools
tz_statusBarHeight
];
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
toolBarHeight
-
top
:
self
.
view
.
tz_height
-
top
;;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
toolBarHeight
-
top
:
self
.
view
.
tz_height
-
top
;;
}
else
{
}
else
{
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
toolBarHeight
:
self
.
view
.
tz_height
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
toolBarHeight
:
self
.
view
.
tz_height
;
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
View file @
8a652a57
...
@@ -247,8 +247,9 @@
...
@@ -247,8 +247,9 @@
[
super
viewDidLayoutSubviews
];
[
super
viewDidLayoutSubviews
];
TZImagePickerController
*
_tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
TZImagePickerController
*
_tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
CGFloat
statusBarHeight
=
[
TZCommonTools
tz_statusBarHeight
];
BOOL
isFullScreen
=
self
.
view
.
tz_height
==
[
UIScreen
mainScreen
].
bounds
.
size
.
height
;
CGFloat
statusBarHeightInterval
=
statusBarHeight
-
20
;
CGFloat
statusBarHeight
=
isFullScreen
?
[
TZCommonTools
tz_statusBarHeight
]
:
0
;
CGFloat
statusBarHeightInterval
=
isFullScreen
?
(
statusBarHeight
-
20
)
:
0
;
CGFloat
naviBarHeight
=
statusBarHeight
+
_tzImagePickerVc
.
navigationBar
.
tz_height
;
CGFloat
naviBarHeight
=
statusBarHeight
+
_tzImagePickerVc
.
navigationBar
.
tz_height
;
_naviBar
.
frame
=
CGRectMake
(
0
,
0
,
self
.
view
.
tz_width
,
naviBarHeight
);
_naviBar
.
frame
=
CGRectMake
(
0
,
0
,
self
.
view
.
tz_width
,
naviBarHeight
);
_backButton
.
frame
=
CGRectMake
(
10
,
10
+
statusBarHeightInterval
,
44
,
44
);
_backButton
.
frame
=
CGRectMake
(
10
,
10
+
statusBarHeightInterval
,
44
,
44
);
...
...
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
View file @
8a652a57
...
@@ -140,7 +140,8 @@
...
@@ -140,7 +140,8 @@
-
(
void
)
viewDidLayoutSubviews
{
-
(
void
)
viewDidLayoutSubviews
{
[
super
viewDidLayoutSubviews
];
[
super
viewDidLayoutSubviews
];
CGFloat
statusBarHeight
=
[
TZCommonTools
tz_statusBarHeight
];
BOOL
isFullScreen
=
self
.
view
.
tz_height
==
[
UIScreen
mainScreen
].
bounds
.
size
.
height
;
CGFloat
statusBarHeight
=
isFullScreen
?
[
TZCommonTools
tz_statusBarHeight
]
:
0
;
CGFloat
statusBarAndNaviBarHeight
=
statusBarHeight
+
self
.
navigationController
.
navigationBar
.
tz_height
;
CGFloat
statusBarAndNaviBarHeight
=
statusBarHeight
+
self
.
navigationController
.
navigationBar
.
tz_height
;
_playerLayer
.
frame
=
self
.
view
.
bounds
;
_playerLayer
.
frame
=
self
.
view
.
bounds
;
CGFloat
toolBarHeight
=
[
TZCommonTools
tz_isIPhoneX
]
?
44
+
(
83
-
49
)
:
44
;
CGFloat
toolBarHeight
=
[
TZCommonTools
tz_isIPhoneX
]
?
44
+
(
83
-
49
)
:
44
;
...
...
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