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
9f10491e
Commit
9f10491e
authored
Aug 26, 2019
by
yuzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化一些细节
parent
5cb93b50
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
README.md
README.md
+1
-1
TZImagePickerController/TZImagePickerController/TZImagePickerController.h
...troller/TZImagePickerController/TZImagePickerController.h
+2
-1
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+1
-1
TZImagePickerController/ViewController.m
TZImagePickerController/ViewController.m
+3
-1
No files found.
README.md
View file @
9f10491e
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
// You can get the photos by block, the same as by delegate.
// You can get the photos by block, the same as by delegate.
// 你可以通过block或者代理,来得到用户选择的照片.
// 你可以通过block或者代理,来得到用户选择的照片.
[imagePickerVc setDidFinishPickingPhotosHandle:^(NSArray<UIImage *> *photos, NSArray *assets) {
[imagePickerVc setDidFinishPickingPhotosHandle:^(NSArray<UIImage *> *photos, NSArray *assets
, BOOL isSelectOriginalPhoto
) {
}];
}];
[self presentViewController:imagePickerVc animated:YES completion:nil];
[self presentViewController:imagePickerVc animated:YES completion:nil];
...
...
TZImagePickerController/TZImagePickerController/TZImagePickerController.h
View file @
9f10491e
...
@@ -56,7 +56,8 @@
...
@@ -56,7 +56,8 @@
/// 对照片排序,按修改时间升序,默认是YES。如果设置为NO,最新的照片会显示在最前面,内部的拍照按钮会排在第一个
/// 对照片排序,按修改时间升序,默认是YES。如果设置为NO,最新的照片会显示在最前面,内部的拍照按钮会排在第一个
@property
(
nonatomic
,
assign
)
BOOL
sortAscendingByModificationDate
;
@property
(
nonatomic
,
assign
)
BOOL
sortAscendingByModificationDate
;
/// The pixel width of output image, Default is 828px / 导出图片的宽度,默认828像素宽
/// The pixel width of output image, Default is 828px,you need to set photoPreviewMaxWidth at the same time
/// 导出图片的宽度,默认828像素宽,你需要同时设置photoPreviewMaxWidth的值
@property
(
nonatomic
,
assign
)
CGFloat
photoWidth
;
@property
(
nonatomic
,
assign
)
CGFloat
photoWidth
;
/// Default is 600px / 默认600像素宽
/// Default is 600px / 默认600像素宽
...
...
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
9f10491e
...
@@ -727,8 +727,8 @@
...
@@ -727,8 +727,8 @@
[
imagePickerVc
showProgressHUD
];
[
imagePickerVc
showProgressHUD
];
}
}
TZImagePickerController
*
imagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
dispatch_async
(
dispatch_get_global_queue
(
0
,
0
),
^
{
dispatch_async
(
dispatch_get_global_queue
(
0
,
0
),
^
{
TZImagePickerController
*
imagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
[[
TZImageManager
manager
]
getAllAlbums
:
imagePickerVc
.
allowPickingVideo
allowPickingImage
:
imagePickerVc
.
allowPickingImage
needFetchAssets
:!
self
.
isFirstAppear
completion
:^
(
NSArray
<
TZAlbumModel
*>
*
models
)
{
[[
TZImageManager
manager
]
getAllAlbums
:
imagePickerVc
.
allowPickingVideo
allowPickingImage
:
imagePickerVc
.
allowPickingImage
needFetchAssets
:!
self
.
isFirstAppear
completion
:^
(
NSArray
<
TZAlbumModel
*>
*
models
)
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
dispatch_async
(
dispatch_get_main_queue
(),
^
{
self
->
_albumArr
=
[
NSMutableArray
arrayWithArray
:
models
];
self
->
_albumArr
=
[
NSMutableArray
arrayWithArray
:
models
];
...
...
TZImagePickerController/ViewController.m
View file @
9f10491e
...
@@ -273,7 +273,8 @@
...
@@ -273,7 +273,8 @@
imagePickerController
.
videoQuality
=
UIImagePickerControllerQualityTypeHigh
;
imagePickerController
.
videoQuality
=
UIImagePickerControllerQualityTypeHigh
;
}];
}];
// imagePickerVc.photoWidth = 800;
// imagePickerVc.photoWidth = 1600;
// imagePickerVc.photoPreviewMaxWidth = 1600;
// 2. Set the appearance
// 2. Set the appearance
// 2. 在这里设置imagePickerVc的外观
// 2. 在这里设置imagePickerVc的外观
...
@@ -380,6 +381,7 @@
...
@@ -380,6 +381,7 @@
}];
}];
imagePickerVc
.
modalPresentationStyle
=
UIModalPresentationFullScreen
;
[
self
presentViewController
:
imagePickerVc
animated
:
YES
completion
:
nil
];
[
self
presentViewController
:
imagePickerVc
animated
:
YES
completion
:
nil
];
}
}
...
...
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