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
ae034fd8
Commit
ae034fd8
authored
Aug 12, 2016
by
banchichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复iCloud图片预览时图片尺寸不对等问题
parent
c49d55cf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
TZImagePickerController/TZImagePickerController/TZImageManager.m
...PickerController/TZImagePickerController/TZImageManager.m
+1
-1
No files found.
TZImagePickerController/TZImagePickerController/TZImageManager.m
View file @
ae034fd8
...
@@ -411,7 +411,7 @@ static CGFloat TZScreenScale;
...
@@ -411,7 +411,7 @@ static CGFloat TZScreenScale;
PHAsset
*
phAsset
=
(
PHAsset
*
)
asset
;
PHAsset
*
phAsset
=
(
PHAsset
*
)
asset
;
CGFloat
aspectRatio
=
phAsset
.
pixelWidth
/
(
CGFloat
)
phAsset
.
pixelHeight
;
CGFloat
aspectRatio
=
phAsset
.
pixelWidth
/
(
CGFloat
)
phAsset
.
pixelHeight
;
CGFloat
pixelWidth
=
photoWidth
*
TZScreenScale
;
CGFloat
pixelWidth
=
photoWidth
*
TZScreenScale
;
CGFloat
pixelHeight
=
p
hoto
Width
/
aspectRatio
;
CGFloat
pixelHeight
=
p
ixel
Width
/
aspectRatio
;
imageSize
=
CGSizeMake
(
pixelWidth
,
pixelHeight
);
imageSize
=
CGSizeMake
(
pixelWidth
,
pixelHeight
);
}
}
// 修复获取图片时出现的瞬间内存过高问题
// 修复获取图片时出现的瞬间内存过高问题
...
...
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