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
d4f4f9b8
Commit
d4f4f9b8
authored
Jan 31, 2020
by
yuzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid done button repeated clicks
parent
293a1fa6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+3
-2
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
d4f4f9b8
...
@@ -393,6 +393,7 @@ static CGFloat itemMargin = 5;
...
@@ -393,6 +393,7 @@ static CGFloat itemMargin = 5;
}
}
[
tzImagePickerVc
showProgressHUD
];
[
tzImagePickerVc
showProgressHUD
];
_doneButton
.
enabled
=
NO
;
NSMutableArray
*
assets
=
[
NSMutableArray
array
];
NSMutableArray
*
assets
=
[
NSMutableArray
array
];
NSMutableArray
*
photos
;
NSMutableArray
*
photos
;
NSMutableArray
*
infoArr
;
NSMutableArray
*
infoArr
;
...
@@ -431,7 +432,6 @@ static CGFloat itemMargin = 5;
...
@@ -431,7 +432,6 @@ static CGFloat itemMargin = 5;
}
progressHandler
:^
(
double
progress
,
NSError
*
_Nonnull
error
,
BOOL
*
_Nonnull
stop
,
NSDictionary
*
_Nonnull
info
)
{
}
progressHandler
:^
(
double
progress
,
NSError
*
_Nonnull
error
,
BOOL
*
_Nonnull
stop
,
NSDictionary
*
_Nonnull
info
)
{
// 如果图片正在从iCloud同步中,提醒用户
// 如果图片正在从iCloud同步中,提醒用户
if
(
progress
<
1
&&
havenotShowAlert
&&
!
alertView
)
{
if
(
progress
<
1
&&
havenotShowAlert
&&
!
alertView
)
{
[
tzImagePickerVc
hideProgressHUD
];
alertView
=
[
tzImagePickerVc
showAlertWithTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Synchronizing photos from iCloud"
]];
alertView
=
[
tzImagePickerVc
showAlertWithTitle
:[
NSBundle
tz_localizedStringForKey
:
@"Synchronizing photos from iCloud"
]];
havenotShowAlert
=
NO
;
havenotShowAlert
=
NO
;
return
;
return
;
...
@@ -451,6 +451,7 @@ static CGFloat itemMargin = 5;
...
@@ -451,6 +451,7 @@ static CGFloat itemMargin = 5;
-
(
void
)
didGetAllPhotos
:(
NSArray
*
)
photos
assets
:(
NSArray
*
)
assets
infoArr
:(
NSArray
*
)
infoArr
{
-
(
void
)
didGetAllPhotos
:(
NSArray
*
)
photos
assets
:(
NSArray
*
)
assets
infoArr
:(
NSArray
*
)
infoArr
{
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
[
tzImagePickerVc
hideProgressHUD
];
[
tzImagePickerVc
hideProgressHUD
];
_doneButton
.
enabled
=
YES
;
if
(
tzImagePickerVc
.
autoDismiss
)
{
if
(
tzImagePickerVc
.
autoDismiss
)
{
[
self
.
navigationController
dismissViewControllerAnimated
:
YES
completion
:
^
{
[
self
.
navigationController
dismissViewControllerAnimated
:
YES
completion
:
^
{
...
...
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