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
405cee6f
Commit
405cee6f
authored
Jan 15, 2018
by
yuzheng.tz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化一些细节
parent
6dd5579d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
5 deletions
+9
-5
TZImagePickerController.xcodeproj/project.pbxproj
TZImagePickerController.xcodeproj/project.pbxproj
+7
-3
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+1
-1
TZImagePickerController/ViewController.m
TZImagePickerController/ViewController.m
+1
-1
No files found.
TZImagePickerController.xcodeproj/project.pbxproj
View file @
405cee6f
...
...
@@ -440,7 +440,7 @@
TargetAttributes
=
{
900E657B1C2BB8D5003D9A9E
=
{
CreatedOnToolsVersion
=
7.2
;
DevelopmentTeam
=
F9M2T7SUYF
;
DevelopmentTeam
=
UNNVERQ745
;
ProvisioningStyle
=
Automatic
;
};
900E65941C2BB8D5003D9A9E
=
{
...
...
@@ -707,7 +707,8 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
DEVELOPMENT_TEAM
=
F9M2T7SUYF
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
UNNVERQ745
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
...
@@ -718,6 +719,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerController
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
};
name
=
Debug
;
...
...
@@ -728,7 +730,8 @@
ASSETCATALOG_COMPILER_APPICON_NAME
=
AppIcon
;
CODE_SIGN_IDENTITY
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
DEVELOPMENT_TEAM
=
F9M2T7SUYF
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
UNNVERQ745
;
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
...
@@ -739,6 +742,7 @@
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhen.TZImagePickerController
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
TARGETED_DEVICE_FAMILY
=
"1,2"
;
};
name
=
Release
;
...
...
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
405cee6f
...
...
@@ -173,7 +173,7 @@
_tipLabel
.
font
=
[
UIFont
systemFontOfSize
:
16
];
_tipLabel
.
textColor
=
[
UIColor
blackColor
];
NSDictionary
*
infoDict
=
[
NSBundle
mainBundle
].
localizedInfoDictionary
;
if
(
!
infoDict
)
{
if
(
!
infoDict
||
!
infoDict
.
count
)
{
infoDict
=
[
NSBundle
mainBundle
].
infoDictionary
;
}
NSString
*
appName
=
[
infoDict
valueForKey
:
@"CFBundleDisplayName"
];
...
...
TZImagePickerController/ViewController.m
View file @
405cee6f
...
...
@@ -473,7 +473,7 @@
// 如果isSelectOriginalPhoto为YES,表明用户选择了原图
// 你可以通过一个asset获得原图,通过这个方法:[[TZImageManager manager] getOriginalPhotoWithAsset:completion:]
// photos数组里的UIImage对象,默认是828像素宽,你可以通过设置photoWidth属性的值来改变它
-
(
void
)
imagePickerController
:(
TZImagePickerController
*
)
picker
didFinishPickingPhotos
:(
NSArray
*
)
photos
sourceAssets
:(
NSArray
*
)
assets
isSelectOriginalPhoto
:(
BOOL
)
isSelectOriginalPhoto
{
-
(
void
)
imagePickerController
:(
TZImagePickerController
*
)
picker
didFinishPickingPhotos
:(
NSArray
<
UIImage
*>
*
)
photos
sourceAssets
:(
NSArray
*
)
assets
isSelectOriginalPhoto
:(
BOOL
)
isSelectOriginalPhoto
infos
:(
NSArray
<
NSDictionary
*>
*
)
infos
{
_selectedPhotos
=
[
NSMutableArray
arrayWithArray
:
photos
];
_selectedAssets
=
[
NSMutableArray
arrayWithArray
:
assets
];
_isSelectOriginalPhoto
=
isSelectOriginalPhoto
;
...
...
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