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
0b350b97
Commit
0b350b97
authored
Jul 19, 2021
by
Ocean
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决横屏状态下预览图片的问题
parent
58fb4895
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
TZImagePickerController.xcodeproj/project.pbxproj
TZImagePickerController.xcodeproj/project.pbxproj
+5
-5
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
...erController/TZImagePickerController/TZPhotoPreviewCell.m
+7
-1
No files found.
TZImagePickerController.xcodeproj/project.pbxproj
View file @
0b350b97
...
@@ -499,7 +499,7 @@
...
@@ -499,7 +499,7 @@
TargetAttributes
=
{
TargetAttributes
=
{
900E657B1C2BB8D5003D9A9E
=
{
900E657B1C2BB8D5003D9A9E
=
{
CreatedOnToolsVersion
=
7.2
;
CreatedOnToolsVersion
=
7.2
;
DevelopmentTeam
=
LTFQDC2QVX
;
DevelopmentTeam
=
FHD5X3F5W8
;
ProvisioningStyle
=
Automatic
;
ProvisioningStyle
=
Automatic
;
};
};
900E65941C2BB8D5003D9A9E
=
{
900E65941C2BB8D5003D9A9E
=
{
...
@@ -815,7 +815,7 @@
...
@@ -815,7 +815,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
LTFQDC2QVX
;
DEVELOPMENT_TEAM
=
FHD5X3F5W8
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
@@ -824,7 +824,7 @@
...
@@ -824,7 +824,7 @@
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
MARKETING_VERSION
=
3.6.2
;
MARKETING_VERSION
=
3.6.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios2021.TZImagePickerController.www
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios2021.TZImagePickerController.www
www
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
@@ -839,7 +839,7 @@
...
@@ -839,7 +839,7 @@
CODE_SIGN_IDENTITY
=
"Apple Development"
;
CODE_SIGN_IDENTITY
=
"Apple Development"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
"CODE_SIGN_IDENTITY[sdk=iphoneos*]"
=
"iPhone Developer"
;
CODE_SIGN_STYLE
=
Automatic
;
CODE_SIGN_STYLE
=
Automatic
;
DEVELOPMENT_TEAM
=
LTFQDC2QVX
;
DEVELOPMENT_TEAM
=
FHD5X3F5W8
;
FRAMEWORK_SEARCH_PATHS
=
(
FRAMEWORK_SEARCH_PATHS
=
(
"$(inherited)"
,
"$(inherited)"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
"$(PROJECT_DIR)/TZImagePickerController"
,
...
@@ -848,7 +848,7 @@
...
@@ -848,7 +848,7 @@
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
MARKETING_VERSION
=
3.6.2
;
MARKETING_VERSION
=
3.6.2
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios2021.TZImagePickerController.www
;
PRODUCT_BUNDLE_IDENTIFIER
=
tanzhenios2021.TZImagePickerController.www
www
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PRODUCT_NAME
=
"$(TARGET_NAME)"
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
PROVISIONING_PROFILE_SPECIFIER
=
""
;
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPreviewCell.m
View file @
0b350b97
...
@@ -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