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
7a91429c
Commit
7a91429c
authored
Jul 15, 2017
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理全局隐藏状态栏的情形
parent
b8f51d02
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
TZImagePickerController/Info.plist
TZImagePickerController/Info.plist
+1
-1
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+2
-2
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+2
-2
No files found.
TZImagePickerController/Info.plist
View file @
7a91429c
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
<string>
armv7
</string>
<string>
armv7
</string>
</array>
</array>
<key>
UIStatusBarHidden
</key>
<key>
UIStatusBarHidden
</key>
<
tru
e/>
<
fals
e/>
<key>
UISupportedInterfaceOrientations
</key>
<key>
UISupportedInterfaceOrientations
</key>
<array>
<array>
<string>
UIInterfaceOrientationPortrait
</string>
<string>
UIInterfaceOrientationPortrait
</string>
...
...
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
7a91429c
...
@@ -590,11 +590,11 @@
...
@@ -590,11 +590,11 @@
CGFloat
tableViewHeight
=
0
;
CGFloat
tableViewHeight
=
0
;
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
top
=
44
;
top
=
44
;
if
(
iOS7Later
)
top
+=
20
;
if
(
iOS7Later
&&
!
TZ_isGlobalHideStatusBar
)
top
+=
20
;
tableViewHeight
=
self
.
view
.
tz_height
-
top
;
tableViewHeight
=
self
.
view
.
tz_height
-
top
;
}
else
{
}
else
{
CGFloat
navigationHeight
=
44
;
CGFloat
navigationHeight
=
44
;
if
(
iOS7Later
)
navigationHeight
+=
20
;
if
(
iOS7Later
&&
!
TZ_isGlobalHideStatusBar
)
navigationHeight
+=
20
;
tableViewHeight
=
self
.
view
.
tz_height
-
navigationHeight
;
tableViewHeight
=
self
.
view
.
tz_height
-
navigationHeight
;
}
}
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
7a91429c
...
@@ -139,11 +139,11 @@ static CGSize AssetGridThumbnailSize;
...
@@ -139,11 +139,11 @@ static CGSize AssetGridThumbnailSize;
CGFloat
collectionViewHeight
=
0
;
CGFloat
collectionViewHeight
=
0
;
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
if
(
self
.
navigationController
.
navigationBar
.
isTranslucent
)
{
top
=
44
;
top
=
44
;
if
(
iOS7Later
)
top
+=
20
;
if
(
iOS7Later
&&
!
TZ_isGlobalHideStatusBar
)
top
+=
20
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
top
:
self
.
view
.
tz_height
-
top
;;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
top
:
self
.
view
.
tz_height
-
top
;;
}
else
{
}
else
{
CGFloat
navigationHeight
=
44
;
CGFloat
navigationHeight
=
44
;
if
(
iOS7Later
)
navigationHeight
+=
20
;
if
(
iOS7Later
&&
!
TZ_isGlobalHideStatusBar
)
navigationHeight
+=
20
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
navigationHeight
:
self
.
view
.
tz_height
-
navigationHeight
;
collectionViewHeight
=
tzImagePickerVc
.
showSelectBtn
?
self
.
view
.
tz_height
-
50
-
navigationHeight
:
self
.
view
.
tz_height
-
navigationHeight
;
}
}
...
...
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