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
f7c5f13f
Commit
f7c5f13f
authored
Sep 21, 2020
by
肖兰月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dark mode
parent
6189bd1c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
74 additions
and
17 deletions
+74
-17
TZImagePickerController.xcodeproj/project.pbxproj
TZImagePickerController.xcodeproj/project.pbxproj
+13
-7
TZImagePickerController/TZImagePickerController/TZAssetCell.m
...agePickerController/TZImagePickerController/TZAssetCell.m
+10
-2
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+9
-1
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+39
-6
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.h
...troller/TZImagePickerController/TZVideoPlayerController.h
+2
-1
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
...troller/TZImagePickerController/TZVideoPlayerController.m
+1
-0
No files found.
TZImagePickerController.xcodeproj/project.pbxproj
View file @
f7c5f13f
...
@@ -487,7 +487,7 @@
...
@@ -487,7 +487,7 @@
TargetAttributes
=
{
TargetAttributes
=
{
900E657B1C2BB8D5003D9A9E
=
{
900E657B1C2BB8D5003D9A9E
=
{
CreatedOnToolsVersion
=
7.2
;
CreatedOnToolsVersion
=
7.2
;
DevelopmentTeam
=
LTFQDC2QVX
;
DevelopmentTeam
=
U5XPKW87TZ
;
ProvisioningStyle
=
Automatic
;
ProvisioningStyle
=
Automatic
;
};
};
900E65941C2BB8D5003D9A9E
=
{
900E65941C2BB8D5003D9A9E
=
{
...
@@ -796,10 +796,10 @@
...
@@ -796,10 +796,10 @@
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
""
;
CODE_SIGN_IDENTITY
=
"
Apple Development
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
LTFQDC2QVX
;
DEVELOPMENT_TEAM
=
U5XPKW87TZ
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
@@ -808,7 +808,7 @@
...
@@ -808,7 +808,7 @@
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
MARKETING_VERSION
=
3.3.2
;
MARKETING_VERSION
=
3.3.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios20
19
.TZImagePickerController.www
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios20
20
.TZImagePickerController.www
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -820,10 +820,10 @@
...
@@ -820,10 +820,10 @@
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
buildSettings
=
{
buildSettings
=
{
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
""
;
CODE_SIGN_IDENTITY
=
"
Apple Development
"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
LTFQDC2QVX
;
DEVELOPMENT_TEAM
=
U5XPKW87TZ
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
@@ -832,7 +832,7 @@
...
@@ -832,7 +832,7 @@
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
MARKETING_VERSION
=
3.3.2
;
MARKETING_VERSION
=
3.3.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios20
19
.TZImagePickerController.www
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios20
20
.TZImagePickerController.www
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -844,6 +844,7 @@
...
@@ -844,6 +844,7 @@
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
buildSettings
=
{
buildSettings
=
{
BUNDLE_LOADER
=
"$(TEST_HOST)"
;
BUNDLE_LOADER
=
"$(TEST_HOST)"
;
DEVELOPMENT_TEAM
=
""
;
INFOPLIST_FILE
=
TZImagePickerControllerTests/Info.plist
;
INFOPLIST_FILE
=
TZImagePickerControllerTests/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerControllerTests
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerControllerTests
;
...
@@ -856,6 +857,7 @@
...
@@ -856,6 +857,7 @@
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
buildSettings
=
{
buildSettings
=
{
BUNDLE_LOADER
=
"$(TEST_HOST)"
;
BUNDLE_LOADER
=
"$(TEST_HOST)"
;
DEVELOPMENT_TEAM
=
""
;
INFOPLIST_FILE
=
TZImagePickerControllerTests/Info.plist
;
INFOPLIST_FILE
=
TZImagePickerControllerTests/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerControllerTests
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerControllerTests
;
...
@@ -867,6 +869,8 @@
...
@@ -867,6 +869,8 @@
900E65B01C2BB8D5003D9A9E
/* Debug */
=
{
900E65B01C2BB8D5003D9A9E
/* Debug */
=
{
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
buildSettings
=
{
buildSettings
=
{
"CODE_SIGN_IDENTITY[sdk=macosx*]"
=
"Apple Development"
;
DEVELOPMENT_TEAM
=
""
;
INFOPLIST_FILE
=
TZImagePickerControllerUITests/Info.plist
;
INFOPLIST_FILE
=
TZImagePickerControllerUITests/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerControllerUITests
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerControllerUITests
;
...
@@ -879,6 +883,8 @@
...
@@ -879,6 +883,8 @@
900E65B11C2BB8D5003D9A9E
/* Release */
=
{
900E65B11C2BB8D5003D9A9E
/* Release */
=
{
isa
=
XCBuildConfiguration
;
isa
=
XCBuildConfiguration
;
buildSettings
=
{
buildSettings
=
{
"CODE_SIGN_IDENTITY[sdk=macosx*]"
=
"Apple Development"
;
DEVELOPMENT_TEAM
=
""
;
INFOPLIST_FILE
=
TZImagePickerControllerUITests/Info.plist
;
INFOPLIST_FILE
=
TZImagePickerControllerUITests/Info.plist
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks @loader_path/Frameworks"
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerControllerUITests
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerControllerUITests
;
...
...
TZImagePickerController/TZImagePickerController/TZAssetCell.m
View file @
f7c5f13f
...
@@ -388,7 +388,11 @@
...
@@ -388,7 +388,11 @@
-
(
void
)
setModel
:(
TZAlbumModel
*
)
model
{
-
(
void
)
setModel
:(
TZAlbumModel
*
)
model
{
_model
=
model
;
_model
=
model
;
NSMutableAttributedString
*
nameString
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
model
.
name
attributes
:@{
NSFontAttributeName
:
[
UIFont
systemFontOfSize
:
16
],
NSForegroundColorAttributeName
:
[
UIColor
blackColor
]}];
UIColor
*
nameColor
=
UIColor
.
blackColor
;
if
(
@available
(
iOS
13
.
0
,
*
))
{
nameColor
=
UIColor
.
labelColor
;
}
NSMutableAttributedString
*
nameString
=
[[
NSMutableAttributedString
alloc
]
initWithString
:
model
.
name
attributes
:@{
NSFontAttributeName
:
[
UIFont
systemFontOfSize
:
16
],
NSForegroundColorAttributeName
:
nameColor
}];
NSAttributedString
*
countString
=
[[
NSAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@" (%zd)"
,
model
.
count
]
attributes
:@{
NSFontAttributeName
:
[
UIFont
systemFontOfSize
:
16
],
NSForegroundColorAttributeName
:
[
UIColor
lightGrayColor
]}];
NSAttributedString
*
countString
=
[[
NSAttributedString
alloc
]
initWithString
:[
NSString
stringWithFormat
:
@" (%zd)"
,
model
.
count
]
attributes
:@{
NSFontAttributeName
:
[
UIFont
systemFontOfSize
:
16
],
NSForegroundColorAttributeName
:
[
UIColor
lightGrayColor
]}];
[
nameString
appendAttributedString
:
countString
];
[
nameString
appendAttributedString
:
countString
];
self
.
titleLabel
.
attributedText
=
nameString
;
self
.
titleLabel
.
attributedText
=
nameString
;
...
@@ -440,7 +444,11 @@
...
@@ -440,7 +444,11 @@
if
(
_titleLabel
==
nil
)
{
if
(
_titleLabel
==
nil
)
{
UILabel
*
titleLabel
=
[[
UILabel
alloc
]
init
];
UILabel
*
titleLabel
=
[[
UILabel
alloc
]
init
];
titleLabel
.
font
=
[
UIFont
boldSystemFontOfSize
:
17
];
titleLabel
.
font
=
[
UIFont
boldSystemFontOfSize
:
17
];
if
(
@available
(
iOS
13
.
0
,
*
))
{
titleLabel
.
textColor
=
UIColor
.
labelColor
;
}
else
{
titleLabel
.
textColor
=
[
UIColor
blackColor
];
titleLabel
.
textColor
=
[
UIColor
blackColor
];
}
titleLabel
.
textAlignment
=
NSTextAlignmentLeft
;
titleLabel
.
textAlignment
=
NSTextAlignmentLeft
;
[
self
.
contentView
addSubview
:
titleLabel
];
[
self
.
contentView
addSubview
:
titleLabel
];
_titleLabel
=
titleLabel
;
_titleLabel
=
titleLabel
;
...
...
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
f7c5f13f
...
@@ -770,7 +770,11 @@
...
@@ -770,7 +770,11 @@
if
(
!
self
->
_tableView
)
{
if
(
!
self
->
_tableView
)
{
self
->
_tableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectZero
style
:
UITableViewStylePlain
];
self
->
_tableView
=
[[
UITableView
alloc
]
initWithFrame
:
CGRectZero
style
:
UITableViewStylePlain
];
self
->
_tableView
.
rowHeight
=
70
;
self
->
_tableView
.
rowHeight
=
70
;
if
(
@available
(
iOS
13
.
0
,
*
))
{
self
->
_tableView
.
backgroundColor
=
[
UIColor
tertiarySystemBackgroundColor
];
}
else
{
self
->
_tableView
.
backgroundColor
=
[
UIColor
whiteColor
];
self
->
_tableView
.
backgroundColor
=
[
UIColor
whiteColor
];
}
self
->
_tableView
.
tableFooterView
=
[[
UIView
alloc
]
init
];
self
->
_tableView
.
tableFooterView
=
[[
UIView
alloc
]
init
];
self
->
_tableView
.
dataSource
=
self
;
self
->
_tableView
.
dataSource
=
self
;
self
->
_tableView
.
delegate
=
self
;
self
->
_tableView
.
delegate
=
self
;
...
@@ -824,6 +828,10 @@
...
@@ -824,6 +828,10 @@
-
(
UITableViewCell
*
)
tableView
:(
UITableView
*
)
tableView
cellForRowAtIndexPath
:(
NSIndexPath
*
)
indexPath
{
-
(
UITableViewCell
*
)
tableView
:(
UITableView
*
)
tableView
cellForRowAtIndexPath
:(
NSIndexPath
*
)
indexPath
{
TZAlbumCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"TZAlbumCell"
];
TZAlbumCell
*
cell
=
[
tableView
dequeueReusableCellWithIdentifier
:
@"TZAlbumCell"
];
if
(
@available
(
iOS
13
.
0
,
*
))
{
cell
.
backgroundColor
=
UIColor
.
tertiarySystemBackgroundColor
;
}
else
{
}
TZImagePickerController
*
imagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
TZImagePickerController
*
imagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
cell
.
albumCellDidLayoutSubviewsBlock
=
imagePickerVc
.
albumCellDidLayoutSubviewsBlock
;
cell
.
albumCellDidLayoutSubviewsBlock
=
imagePickerVc
.
albumCellDidLayoutSubviewsBlock
;
cell
.
albumCellDidSetModelBlock
=
imagePickerVc
.
albumCellDidSetModelBlock
;
cell
.
albumCellDidSetModelBlock
=
imagePickerVc
.
albumCellDidSetModelBlock
;
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
f7c5f13f
...
@@ -165,7 +165,11 @@ static CGFloat itemMargin = 5;
...
@@ -165,7 +165,11 @@ static CGFloat itemMargin = 5;
-
(
void
)
configCollectionView
{
-
(
void
)
configCollectionView
{
_layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
_layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
_collectionView
=
[[
TZCollectionView
alloc
]
initWithFrame
:
CGRectZero
collectionViewLayout
:
_layout
];
_collectionView
=
[[
TZCollectionView
alloc
]
initWithFrame
:
CGRectZero
collectionViewLayout
:
_layout
];
if
(
@available
(
iOS
13
.
0
,
*
))
{
_collectionView
.
backgroundColor
=
UIColor
.
tertiarySystemBackgroundColor
;
}
else
{
_collectionView
.
backgroundColor
=
[
UIColor
whiteColor
];
_collectionView
.
backgroundColor
=
[
UIColor
whiteColor
];
}
_collectionView
.
dataSource
=
self
;
_collectionView
.
dataSource
=
self
;
_collectionView
.
delegate
=
self
;
_collectionView
.
delegate
=
self
;
_collectionView
.
alwaysBounceHorizontal
=
NO
;
_collectionView
.
alwaysBounceHorizontal
=
NO
;
...
@@ -216,14 +220,22 @@ static CGFloat itemMargin = 5;
...
@@ -216,14 +220,22 @@ static CGFloat itemMargin = 5;
_bottomToolBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectZero
];
_bottomToolBar
=
[[
UIView
alloc
]
initWithFrame
:
CGRectZero
];
CGFloat
rgb
=
253
/
255
.
0
;
CGFloat
rgb
=
253
/
255
.
0
;
if
(
@available
(
iOS
13
.
0
,
*
))
{
_bottomToolBar
.
backgroundColor
=
UIColor
.
tertiarySystemBackgroundColor
;
}
else
{
_bottomToolBar
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
_bottomToolBar
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb
green
:
rgb
blue
:
rgb
alpha
:
1
.
0
];
}
_previewButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
_previewButton
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
_previewButton
addTarget
:
self
action
:
@selector
(
previewButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
_previewButton
addTarget
:
self
action
:
@selector
(
previewButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
_previewButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_previewButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
[
_previewButton
setTitle
:
tzImagePickerVc
.
previewBtnTitleStr
forState
:
UIControlStateNormal
];
[
_previewButton
setTitle
:
tzImagePickerVc
.
previewBtnTitleStr
forState
:
UIControlStateNormal
];
[
_previewButton
setTitle
:
tzImagePickerVc
.
previewBtnTitleStr
forState
:
UIControlStateDisabled
];
[
_previewButton
setTitle
:
tzImagePickerVc
.
previewBtnTitleStr
forState
:
UIControlStateDisabled
];
if
(
@available
(
iOS
13
.
0
,
*
))
{
[
_previewButton
setTitleColor
:
UIColor
.
labelColor
forState
:
UIControlStateNormal
];
}
else
{
[
_previewButton
setTitleColor
:[
UIColor
blackColor
]
forState
:
UIControlStateNormal
];
[
_previewButton
setTitleColor
:[
UIColor
blackColor
]
forState
:
UIControlStateNormal
];
}
[
_previewButton
setTitleColor
:[
UIColor
lightGrayColor
]
forState
:
UIControlStateDisabled
];
[
_previewButton
setTitleColor
:[
UIColor
lightGrayColor
]
forState
:
UIControlStateDisabled
];
_previewButton
.
enabled
=
tzImagePickerVc
.
selectedModels
.
count
;
_previewButton
.
enabled
=
tzImagePickerVc
.
selectedModels
.
count
;
...
@@ -235,7 +247,11 @@ static CGFloat itemMargin = 5;
...
@@ -235,7 +247,11 @@ static CGFloat itemMargin = 5;
[
_originalPhotoButton
setTitle
:
tzImagePickerVc
.
fullImageBtnTitleStr
forState
:
UIControlStateNormal
];
[
_originalPhotoButton
setTitle
:
tzImagePickerVc
.
fullImageBtnTitleStr
forState
:
UIControlStateNormal
];
[
_originalPhotoButton
setTitle
:
tzImagePickerVc
.
fullImageBtnTitleStr
forState
:
UIControlStateSelected
];
[
_originalPhotoButton
setTitle
:
tzImagePickerVc
.
fullImageBtnTitleStr
forState
:
UIControlStateSelected
];
[
_originalPhotoButton
setTitleColor
:[
UIColor
lightGrayColor
]
forState
:
UIControlStateNormal
];
[
_originalPhotoButton
setTitleColor
:[
UIColor
lightGrayColor
]
forState
:
UIControlStateNormal
];
if
(
@available
(
iOS
13
.
0
,
*
))
{
[
_originalPhotoButton
setTitleColor
:[
UIColor
labelColor
]
forState
:
UIControlStateSelected
];
}
else
{
[
_originalPhotoButton
setTitleColor
:[
UIColor
blackColor
]
forState
:
UIControlStateSelected
];
[
_originalPhotoButton
setTitleColor
:[
UIColor
blackColor
]
forState
:
UIControlStateSelected
];
}
[
_originalPhotoButton
setImage
:
tzImagePickerVc
.
photoOriginDefImage
forState
:
UIControlStateNormal
];
[
_originalPhotoButton
setImage
:
tzImagePickerVc
.
photoOriginDefImage
forState
:
UIControlStateNormal
];
[
_originalPhotoButton
setImage
:
tzImagePickerVc
.
photoOriginSelImage
forState
:
UIControlStateSelected
];
[
_originalPhotoButton
setImage
:
tzImagePickerVc
.
photoOriginSelImage
forState
:
UIControlStateSelected
];
_originalPhotoButton
.
imageView
.
clipsToBounds
=
YES
;
_originalPhotoButton
.
imageView
.
clipsToBounds
=
YES
;
...
@@ -246,7 +262,11 @@ static CGFloat itemMargin = 5;
...
@@ -246,7 +262,11 @@ static CGFloat itemMargin = 5;
_originalPhotoLabel
=
[[
UILabel
alloc
]
init
];
_originalPhotoLabel
=
[[
UILabel
alloc
]
init
];
_originalPhotoLabel
.
textAlignment
=
NSTextAlignmentLeft
;
_originalPhotoLabel
.
textAlignment
=
NSTextAlignmentLeft
;
_originalPhotoLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_originalPhotoLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
if
(
@available
(
iOS
13
.
0
,
*
))
{
_originalPhotoLabel
.
textColor
=
[
UIColor
labelColor
];
}
else
{
_originalPhotoLabel
.
textColor
=
[
UIColor
blackColor
];
_originalPhotoLabel
.
textColor
=
[
UIColor
blackColor
];
}
if
(
_isSelectOriginalPhoto
)
[
self
getSelectedPhotoBytes
];
if
(
_isSelectOriginalPhoto
)
[
self
getSelectedPhotoBytes
];
}
}
...
@@ -276,7 +296,20 @@ static CGFloat itemMargin = 5;
...
@@ -276,7 +296,20 @@ static CGFloat itemMargin = 5;
_divideLine
=
[[
UIView
alloc
]
init
];
_divideLine
=
[[
UIView
alloc
]
init
];
CGFloat
rgb2
=
222
/
255
.
0
;
CGFloat
rgb2
=
222
/
255
.
0
;
if
(
@available
(
iOS
13
.
0
,
*
))
{
UIColor
*
divideLineDyColor
=
[
UIColor
colorWithDynamicProvider
:
^
UIColor
*
_Nonnull
(
UITraitCollection
*
_Nonnull
trainCollection
)
{
if
([
trainCollection
userInterfaceStyle
]
==
UIUserInterfaceStyleLight
)
{
return
[
UIColor
colorWithRed
:
rgb2
green
:
rgb2
blue
:
rgb2
alpha
:
1
.
0
];
}
else
{
CGFloat
lineDarkRgb
=
100
/
255
.
0
;
return
[
UIColor
colorWithRed
:
lineDarkRgb
green
:
lineDarkRgb
blue
:
lineDarkRgb
alpha
:
1
.
0
];
}
}];
_divideLine
.
backgroundColor
=
divideLineDyColor
;
}
else
{
_divideLine
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb2
green
:
rgb2
blue
:
rgb2
alpha
:
1
.
0
];
_divideLine
.
backgroundColor
=
[
UIColor
colorWithRed
:
rgb2
green
:
rgb2
blue
:
rgb2
alpha
:
1
.
0
];
}
[
_bottomToolBar
addSubview
:
_divideLine
];
[
_bottomToolBar
addSubview
:
_divideLine
];
[
_bottomToolBar
addSubview
:
_previewButton
];
[
_bottomToolBar
addSubview
:
_previewButton
];
...
...
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.h
View file @
f7c5f13f
...
@@ -14,3 +14,4 @@
...
@@ -14,3 +14,4 @@
@property
(
nonatomic
,
strong
)
TZAssetModel
*
model
;
@property
(
nonatomic
,
strong
)
TZAssetModel
*
model
;
@end
@end
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
View file @
f7c5f13f
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
UIStatusBarStyle
_originStatusBarStyle
;
UIStatusBarStyle
_originStatusBarStyle
;
}
}
@property
(
assign
,
nonatomic
)
BOOL
needShowStatusBar
;
@property
(
assign
,
nonatomic
)
BOOL
needShowStatusBar
;
@end
@end
#pragma clang diagnostic push
#pragma clang diagnostic push
...
...
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