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
34aa3899
Commit
34aa3899
authored
Mar 25, 2016
by
banchichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化状态栏样式的配置
parent
f5adc91e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+13
-2
No files found.
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
34aa3899
...
...
@@ -23,6 +23,8 @@
UIView
*
_HUDContainer
;
UIActivityIndicatorView
*
_HUDIndicatorView
;
UILabel
*
_HUDLable
;
UIStatusBarStyle
_originStatusBarStyle
;
}
@end
...
...
@@ -33,8 +35,6 @@
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
self
.
navigationBar
.
barStyle
=
UIBarStyleBlack
;
self
.
navigationBar
.
translucent
=
YES
;
[
UIApplication
sharedApplication
].
statusBarStyle
=
UIStatusBarStyleLightContent
;
[
UIApplication
sharedApplication
].
statusBarHidden
=
NO
;
[
TZImageManager
manager
].
shouldFixOrientation
=
NO
;
// Default appearance, you can reset these after this method
...
...
@@ -60,6 +60,17 @@
[
barItem
setTitleTextAttributes
:
textAttrs
forState
:
UIControlStateNormal
];
}
-
(
void
)
viewWillAppear
:(
BOOL
)
animated
{
[
super
viewWillAppear
:
animated
];
_originStatusBarStyle
=
[
UIApplication
sharedApplication
].
statusBarStyle
;
[
UIApplication
sharedApplication
].
statusBarStyle
=
iOS7Later
?
UIStatusBarStyleLightContent
:
UIStatusBarStyleBlackOpaque
;
}
-
(
void
)
viewWillDisappear
:(
BOOL
)
animated
{
[
super
viewWillDisappear
:
animated
];
[
UIApplication
sharedApplication
].
statusBarStyle
=
_originStatusBarStyle
;
}
-
(
instancetype
)
initWithMaxImagesCount
:(
NSInteger
)
maxImagesCount
delegate
:(
id
<
TZImagePickerControllerDelegate
>
)
delegate
{
TZAlbumPickerController
*
albumPickerVc
=
[[
TZAlbumPickerController
alloc
]
init
];
self
=
[
super
initWithRootViewController
:
albumPickerVc
];
...
...
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