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
42860c71
Commit
42860c71
authored
Sep 21, 2021
by
yuzheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化一些细节
parent
f0f01aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
...roller/TZImagePickerController/TZPhotoPreviewController.m
+8
-2
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
View file @
42860c71
...
...
@@ -311,6 +311,10 @@
#pragma mark - Click Event
-
(
void
)
select
:(
UIButton
*
)
selectButton
{
[
self
select
:
selectButton
refreshCount
:
YES
];
}
-
(
void
)
select
:(
UIButton
*
)
selectButton
refreshCount
:(
BOOL
)
refreshCount
{
TZImagePickerController
*
_tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
TZAssetModel
*
model
=
_models
[
self
.
currentIndex
];
if
(
!
selectButton
.
isSelected
)
{
...
...
@@ -367,7 +371,9 @@
}
}
model
.
isSelected
=
!
selectButton
.
isSelected
;
[
self
refreshNaviBarAndBottomBarState
];
if
(
refreshCount
)
{
[
self
refreshNaviBarAndBottomBarState
];
}
if
(
model
.
isSelected
)
{
[
UIView
showOscillatoryAnimationWithLayer
:
selectButton
.
imageView
.
layer
type
:
TZOscillatoryAnimationToBigger
];
}
...
...
@@ -405,7 +411,7 @@
if
([[
TZImageManager
manager
]
isAssetCannotBeSelected
:
model
.
asset
])
{
return
;
}
[
self
select
:
_selectButton
];
[
self
select
:
_selectButton
refreshCount
:
NO
];
}
NSIndexPath
*
indexPath
=
[
NSIndexPath
indexPathForItem
:
self
.
currentIndex
inSection
:
0
];
TZPhotoPreviewCell
*
cell
=
(
TZPhotoPreviewCell
*
)[
_collectionView
cellForItemAtIndexPath
:
indexPath
];
...
...
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