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
89db3ae6
Unverified
Commit
89db3ae6
authored
Jul 21, 2021
by
谭真
Committed by
GitHub
Jul 21, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1519 from OceanAndWu/master
解决横屏状态下预览图片的问题
parents
58fb4895
8d3f7156
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
...erController/TZImagePickerController/TZPhotoPreviewCell.m
+7
-1
No files found.
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
View file @
89db3ae6
...
@@ -282,7 +282,13 @@
...
@@ -282,7 +282,13 @@
UIImage
*
image
=
_imageView
.
image
;
UIImage
*
image
=
_imageView
.
image
;
if
(
image
.
size
.
height
/
image
.
size
.
width
>
self
.
tz_height
/
self
.
scrollView
.
tz_width
)
{
if
(
image
.
size
.
height
/
image
.
size
.
width
>
self
.
tz_height
/
self
.
scrollView
.
tz_width
)
{
_imageContainerView
.
tz_height
=
floor
(
image
.
size
.
height
/
(
image
.
size
.
width
/
self
.
scrollView
.
tz_width
));
CGFloat
width
=
image
.
size
.
width
/
image
.
size
.
height
*
self
.
scrollView
.
tz_height
;
if
(
width
<
1
||
isnan
(
width
))
width
=
self
.
tz_width
;
width
=
floor
(
width
);
_imageContainerView
.
tz_width
=
width
;
_imageContainerView
.
tz_height
=
self
.
tz_height
;
_imageContainerView
.
tz_centerX
=
self
.
tz_width
/
2
;
}
else
{
}
else
{
CGFloat
height
=
image
.
size
.
height
/
image
.
size
.
width
*
self
.
scrollView
.
tz_width
;
CGFloat
height
=
image
.
size
.
height
/
image
.
size
.
width
*
self
.
scrollView
.
tz_width
;
if
(
height
<
1
||
isnan
(
height
))
height
=
self
.
tz_height
;
if
(
height
<
1
||
isnan
(
height
))
height
=
self
.
tz_height
;
...
...
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