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
7797c0e4
Commit
7797c0e4
authored
Sep 22, 2020
by
肖兰月
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决了处理冲突造成的问题
parent
49bd669b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
31 deletions
+15
-31
TZImagePickerController.xcodeproj/project.pbxproj
TZImagePickerController.xcodeproj/project.pbxproj
+9
-15
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+6
-16
No files found.
TZImagePickerController.xcodeproj/project.pbxproj
View file @
7797c0e4
...
@@ -487,7 +487,7 @@
...
@@ -487,7 +487,7 @@
TargetAttributes
=
{
TargetAttributes
=
{
900E657B1C2BB8D5003D9A9E
=
{
900E657B1C2BB8D5003D9A9E
=
{
CreatedOnToolsVersion
=
7.2
;
CreatedOnToolsVersion
=
7.2
;
DevelopmentTeam
=
U5XPKW87TZ
;
DevelopmentTeam
=
LTFQDC2QVX
;
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
=
"
Apple Development
"
;
CODE_SIGN_IDENTITY
=
""
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
U5XPKW87TZ
;
DEVELOPMENT_TEAM
=
LTFQDC2QVX
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
@@ -807,8 +807,8 @@
...
@@ -807,8 +807,8 @@
INFOPLIST_FILE
=
TZImagePickerController/Info.plist
;
INFOPLIST_FILE
=
TZImagePickerController/Info.plist
;
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.
4
.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios20
20
.TZImagePickerController.www
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios20
19
.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
=
"
Apple Development
"
;
CODE_SIGN_IDENTITY
=
""
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
U5XPKW87TZ
;
DEVELOPMENT_TEAM
=
LTFQDC2QVX
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
@@ -831,8 +831,8 @@
...
@@ -831,8 +831,8 @@
INFOPLIST_FILE
=
TZImagePickerController/Info.plist
;
INFOPLIST_FILE
=
TZImagePickerController/Info.plist
;
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.
4
.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios20
20
.TZImagePickerController.www
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios20
19
.TZImagePickerController.www
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -844,7 +844,6 @@
...
@@ -844,7 +844,6 @@
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
;
...
@@ -857,7 +856,6 @@
...
@@ -857,7 +856,6 @@
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
;
...
@@ -869,8 +867,6 @@
...
@@ -869,8 +867,6 @@
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
;
...
@@ -883,8 +879,6 @@
...
@@ -883,8 +879,6 @@
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/TZPhotoPickerController.m
View file @
7797c0e4
...
@@ -163,7 +163,7 @@ static CGFloat itemMargin = 5;
...
@@ -163,7 +163,7 @@ static CGFloat itemMargin = 5;
}
}
-
(
void
)
configCollectionView
{
-
(
void
)
configCollectionView
{
if
(
!
_collectionView
)
{
_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
,
*
))
{
if
(
@available
(
iOS
13
.
0
,
*
))
{
...
@@ -175,15 +175,6 @@ static CGFloat itemMargin = 5;
...
@@ -175,15 +175,6 @@ static CGFloat itemMargin = 5;
_collectionView
.
delegate
=
self
;
_collectionView
.
delegate
=
self
;
_collectionView
.
alwaysBounceHorizontal
=
NO
;
_collectionView
.
alwaysBounceHorizontal
=
NO
;
_collectionView
.
contentInset
=
UIEdgeInsetsMake
(
itemMargin
,
itemMargin
,
itemMargin
,
itemMargin
);
_collectionView
.
contentInset
=
UIEdgeInsetsMake
(
itemMargin
,
itemMargin
,
itemMargin
,
itemMargin
);
if
(
!
_collectionView
)
{
_layout
=
[[
UICollectionViewFlowLayout
alloc
]
init
];
_collectionView
=
[[
TZCollectionView
alloc
]
initWithFrame
:
CGRectZero
collectionViewLayout
:
_layout
];
_collectionView
.
backgroundColor
=
[
UIColor
whiteColor
];
_collectionView
.
dataSource
=
self
;
_collectionView
.
delegate
=
self
;
_collectionView
.
alwaysBounceHorizontal
=
NO
;
_collectionView
.
contentInset
=
UIEdgeInsetsMake
(
itemMargin
,
itemMargin
,
itemMargin
,
itemMargin
);
[
self
.
view
addSubview
:
_collectionView
];
[
self
.
view
addSubview
:
_collectionView
];
[
_collectionView
registerClass
:[
TZAssetCell
class
]
forCellWithReuseIdentifier
:
@"TZAssetCell"
];
[
_collectionView
registerClass
:[
TZAssetCell
class
]
forCellWithReuseIdentifier
:
@"TZAssetCell"
];
[
_collectionView
registerClass
:[
TZAssetCameraCell
class
]
forCellWithReuseIdentifier
:
@"TZAssetCameraCell"
];
[
_collectionView
registerClass
:[
TZAssetCameraCell
class
]
forCellWithReuseIdentifier
:
@"TZAssetCameraCell"
];
...
@@ -318,8 +309,7 @@ static CGFloat itemMargin = 5;
...
@@ -318,8 +309,7 @@ static CGFloat itemMargin = 5;
UIColor
*
divideLineDyColor
=
[
UIColor
colorWithDynamicProvider
:
^
UIColor
*
_Nonnull
(
UITraitCollection
*
_Nonnull
trainCollection
)
{
UIColor
*
divideLineDyColor
=
[
UIColor
colorWithDynamicProvider
:
^
UIColor
*
_Nonnull
(
UITraitCollection
*
_Nonnull
trainCollection
)
{
if
([
trainCollection
userInterfaceStyle
]
==
UIUserInterfaceStyleLight
)
{
if
([
trainCollection
userInterfaceStyle
]
==
UIUserInterfaceStyleLight
)
{
return
[
UIColor
colorWithRed
:
rgb2
green
:
rgb2
blue
:
rgb2
alpha
:
1
.
0
];
return
[
UIColor
colorWithRed
:
rgb2
green
:
rgb2
blue
:
rgb2
alpha
:
1
.
0
];
}
}
else
{
else
{
CGFloat
lineDarkRgb
=
100
/
255
.
0
;
CGFloat
lineDarkRgb
=
100
/
255
.
0
;
return
[
UIColor
colorWithRed
:
lineDarkRgb
green
:
lineDarkRgb
blue
:
lineDarkRgb
alpha
:
1
.
0
];
return
[
UIColor
colorWithRed
:
lineDarkRgb
green
:
lineDarkRgb
blue
:
lineDarkRgb
alpha
:
1
.
0
];
}
}
...
...
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