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
836e6dc2
Commit
836e6dc2
authored
Sep 12, 2019
by
RayJiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复iOS13裁剪错误的问题
parent
8a652a57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
...troller/TZImagePickerController/TZImagePickerController.m
+13
-0
No files found.
TZImagePickerController/TZImagePickerController/TZImagePickerController.m
View file @
836e6dc2
...
...
@@ -21,6 +21,7 @@
UIButton
*
_settingBtn
;
BOOL
_pushPhotoPickerVc
;
BOOL
_didPushPhotoPickerVc
;
CGRect
_cropRect
;
UIButton
*
_progressHUD
;
UIView
*
_HUDContainer
;
...
...
@@ -493,6 +494,18 @@
_cropRectLandscape
=
CGRectMake
((
self
.
view
.
tz_height
-
widthHeight
)
/
2
,
cropRect
.
origin
.
x
,
widthHeight
,
widthHeight
);
}
-
(
CGRect
)
cropRect
{
CGFloat
screenHeight
=
[
UIScreen
mainScreen
].
bounds
.
size
.
height
;
BOOL
isFullScreen
=
self
.
view
.
tz_height
==
screenHeight
;
if
(
isFullScreen
)
{
return
_cropRect
;
}
else
{
CGRect
newCropRect
=
_cropRect
;
newCropRect
.
origin
.
y
-=
((
screenHeight
-
self
.
view
.
tz_height
)
/
2
);
return
newCropRect
;
}
}
-
(
void
)
setTimeout
:(
NSInteger
)
timeout
{
_timeout
=
timeout
;
if
(
timeout
<
5
)
{
...
...
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