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
9da85019
Commit
9da85019
authored
Mar 06, 2018
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复单独使用TZVideoPlayerController时播放视频后状态栏消失的问题
parent
c79e034c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
...troller/TZImagePickerController/TZVideoPlayerController.m
+3
-2
No files found.
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
View file @
9da85019
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
UIStatusBarStyle
_originStatusBarStyle
;
UIStatusBarStyle
_originStatusBarStyle
;
}
}
@property
(
assign
,
nonatomic
)
BOOL
needShowStatusBar
;
@end
@end
#pragma clang diagnostic push
#pragma clang diagnostic push
...
@@ -35,6 +36,7 @@
...
@@ -35,6 +36,7 @@
-
(
void
)
viewDidLoad
{
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
super
viewDidLoad
];
self
.
needShowStatusBar
=
!
[
UIApplication
sharedApplication
].
statusBarHidden
;
self
.
view
.
backgroundColor
=
[
UIColor
blackColor
];
self
.
view
.
backgroundColor
=
[
UIColor
blackColor
];
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
if
(
tzImagePickerVc
)
{
if
(
tzImagePickerVc
)
{
...
@@ -187,8 +189,7 @@
...
@@ -187,8 +189,7 @@
[
self
.
navigationController
setNavigationBarHidden
:
NO
];
[
self
.
navigationController
setNavigationBarHidden
:
NO
];
[
_playButton
setImage
:[
UIImage
imageNamedFromMyBundle
:
@"MMVideoPreviewPlay"
]
forState
:
UIControlStateNormal
];
[
_playButton
setImage
:[
UIImage
imageNamedFromMyBundle
:
@"MMVideoPreviewPlay"
]
forState
:
UIControlStateNormal
];
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
if
(
self
.
needShowStatusBar
&&
iOS7Later
)
{
if
(
tzImagePickerVc
.
needShowStatusBar
&&
iOS7Later
)
{
[
UIApplication
sharedApplication
].
statusBarHidden
=
NO
;
[
UIApplication
sharedApplication
].
statusBarHidden
=
NO
;
}
}
}
}
...
...
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