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
e160e8a0
Commit
e160e8a0
authored
Jun 30, 2016
by
Arthurli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
当图片划出屏幕的时候 恢复 cell 缩放状态
parent
739cd943
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
0 deletions
+21
-0
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.h
...erController/TZImagePickerController/TZPhotoPreviewCell.h
+2
-0
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
...erController/TZImagePickerController/TZPhotoPreviewCell.m
+5
-0
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
...roller/TZImagePickerController/TZPhotoPreviewController.m
+14
-0
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.h
View file @
e160e8a0
...
...
@@ -14,4 +14,6 @@
@property
(
nonatomic
,
strong
)
TZAssetModel
*
model
;
@property
(
nonatomic
,
copy
)
void
(
^
singleTapGestureBlock
)();
-
(
void
)
recoverSubviews
;
@end
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
View file @
e160e8a0
...
...
@@ -69,6 +69,11 @@
}];
}
-
(
void
)
recoverSubviews
{
[
_scrollView
setZoomScale
:
1
.
0
animated
:
NO
];
[
self
resizeSubviews
];
}
-
(
void
)
resizeSubviews
{
_imageContainerView
.
tz_origin
=
CGPointZero
;
_imageContainerView
.
tz_width
=
self
.
tz_width
;
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
View file @
e160e8a0
...
...
@@ -274,6 +274,20 @@
return
cell
;
}
-
(
void
)
collectionView
:(
UICollectionView
*
)
collectionView
willDisplayCell
:(
UICollectionViewCell
*
)
cell
forItemAtIndexPath
:(
NSIndexPath
*
)
indexPath
{
if
([
cell
isKindOfClass
:[
TZPhotoPreviewCell
class
]])
{
[(
TZPhotoPreviewCell
*
)
cell
recoverSubviews
];
}
}
-
(
void
)
collectionView
:(
UICollectionView
*
)
collectionView
didEndDisplayingCell
:(
UICollectionViewCell
*
)
cell
forItemAtIndexPath
:(
NSIndexPath
*
)
indexPath
{
if
([
cell
isKindOfClass
:[
TZPhotoPreviewCell
class
]])
{
[(
TZPhotoPreviewCell
*
)
cell
recoverSubviews
];
}
}
#pragma mark - Private Method
-
(
void
)
refreshNaviBarAndBottomBarState
{
...
...
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