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
f3320358
Unverified
Commit
f3320358
authored
Sep 24, 2020
by
谭真
Committed by
GitHub
Sep 24, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1385 from iiHorizon/master
完善Dark Mode支持
parents
ce11549d
16ce8d7f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+10
-2
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+5
-1
No files found.
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
f3320358
...
...
@@ -51,7 +51,11 @@
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
self
.
needShowStatusBar
=
!
[
UIApplication
sharedApplication
].
statusBarHidden
;
if
(
@available
(
iOS
13
.
0
,
*
))
{
self
.
view
.
backgroundColor
=
UIColor
.
tertiarySystemBackgroundColor
;
}
else
{
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
}
self
.
navigationBar
.
barStyle
=
UIBarStyleBlack
;
self
.
navigationBar
.
translucent
=
YES
;
[
TZImageManager
manager
].
shouldFixOrientation
=
NO
;
...
...
@@ -724,7 +728,11 @@
[
super
viewDidLoad
];
[[
PHPhotoLibrary
sharedPhotoLibrary
]
registerChangeObserver
:
self
];
self
.
isFirstAppear
=
YES
;
if
(
@available
(
iOS
13
.
0
,
*
))
{
self
.
view
.
backgroundColor
=
UIColor
.
tertiarySystemBackgroundColor
;
}
else
{
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
}
TZImagePickerController
*
imagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
UIBarButtonItem
*
cancelItem
=
[[
UIBarButtonItem
alloc
]
initWithTitle
:
imagePickerVc
.
cancelBtnTitleStr
style
:
UIBarButtonItemStylePlain
target
:
imagePickerVc
action
:
@selector
(
cancelButtonClick
)];
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
f3320358
...
...
@@ -82,7 +82,11 @@ static CGFloat itemMargin = 5;
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
_isSelectOriginalPhoto
=
tzImagePickerVc
.
isSelectOriginalPhoto
;
_shouldScrollToBottom
=
YES
;
if
(
@available
(
iOS
13
.
0
,
*
))
{
self
.
view
.
backgroundColor
=
UIColor
.
tertiarySystemBackgroundColor
;
}
else
{
self
.
view
.
backgroundColor
=
[
UIColor
whiteColor
];
}
self
.
navigationItem
.
title
=
_model
.
name
;
UIBarButtonItem
*
cancelItem
=
[[
UIBarButtonItem
alloc
]
initWithTitle
:
tzImagePickerVc
.
cancelBtnTitleStr
style
:
UIBarButtonItemStylePlain
target
:
tzImagePickerVc
action
:
@selector
(
cancelButtonClick
)];
[
TZCommonTools
configBarButtonItem
:
cancelItem
tzImagePickerVc
:
tzImagePickerVc
];
...
...
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