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
aa8e34c7
Commit
aa8e34c7
authored
Sep 09, 2022
by
hengrui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【feat】相册中选择照片时,刚进入照片album中,没有滚动到底部的偶现问题修复.
【影响范围】相册选择 【风险评估】低 【是否自测】是
parent
6ce75207
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+11
-0
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
aa8e34c7
...
@@ -886,6 +886,7 @@ static CGFloat itemMargin = 5;
...
@@ -886,6 +886,7 @@ static CGFloat itemMargin = 5;
-
(
void
)
prepareScrollCollectionViewToBottom
{
-
(
void
)
prepareScrollCollectionViewToBottom
{
if
(
_shouldScrollToBottom
&&
_models
.
count
>
0
)
{
if
(
_shouldScrollToBottom
&&
_models
.
count
>
0
)
{
// try fix #1562:https://github.com/banchichen/TZImagePickerController/issues/1562
// try fix #1562:https://github.com/banchichen/TZImagePickerController/issues/1562
/*
if (@available(iOS 15.0, *)) {
if (@available(iOS 15.0, *)) {
[_collectionView performBatchUpdates:^{} completion:^(BOOL finished) {
[_collectionView performBatchUpdates:^{} completion:^(BOOL finished) {
[self scrollCollectionViewToBottom];
[self scrollCollectionViewToBottom];
...
@@ -895,6 +896,16 @@ static CGFloat itemMargin = 5;
...
@@ -895,6 +896,16 @@ static CGFloat itemMargin = 5;
[self scrollCollectionViewToBottom];
[self scrollCollectionViewToBottom];
});
});
}
}
*/
// iOS 15.6.1 - 凤梨手机相册没有滚动到底的问题。偶现的没有滚动到底部
__weak
typeof
(
self
)
weakSelf
=
self
;
dispatch_after
(
dispatch_time
(
DISPATCH_TIME_NOW
,
(
int64_t
)(
0
.
03
*
NSEC_PER_SEC
)),
dispatch_get_main_queue
(),
^
{
[
weakSelf
.
collectionView
performBatchUpdates
:
^
{
[
weakSelf
scrollCollectionViewToBottom
];
}
completion
:
^
(
BOOL
finished
)
{
}];
});
}
else
{
}
else
{
_collectionView
.
hidden
=
NO
;
_collectionView
.
hidden
=
NO
;
}
}
...
...
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