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
a044190a
Unverified
Commit
a044190a
authored
Mar 26, 2020
by
谭真
Committed by
GitHub
Mar 26, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1293 from ZhangCrow/fix_HUDTimeout
fix: 修复图片选择器HUD超时时间提前消失
parents
8aa2037f
694a0397
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+7
-1
No files found.
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
a044190a
...
...
@@ -33,6 +33,7 @@
/// Default is 4, Use in photos collectionView in TZPhotoPickerController
/// 默认4列, TZPhotoPickerController中的照片collectionView
@property
(
nonatomic
,
assign
)
NSInteger
columnNumber
;
@property
(
nonatomic
,
assign
)
NSInteger
HUDTimeoutCount
;
///< 超时隐藏HUD计数
@end
@implementation
TZImagePickerController
...
...
@@ -447,10 +448,15 @@
[
self
.
view
setNeedsLayout
];
// if over time, dismiss HUD automatic
self
.
HUDTimeoutCount
++
;
__weak
typeof
(
self
)
weakSelf
=
self
;
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
self
.
timeout
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
__strong
typeof
(
weakSelf
)
strongSelf
=
weakSelf
;
[
strongSelf
hideProgressHUD
];
strongSelf
.
HUDTimeoutCount
--
;
if
(
strongSelf
.
HUDTimeoutCount
<=
0
)
{
strongSelf
.
HUDTimeoutCount
=
0
;
[
strongSelf
hideProgressHUD
];
}
});
}
...
...
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