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
d88eb774
Unverified
Commit
d88eb774
authored
Jul 26, 2021
by
谭真
Committed by
GitHub
Jul 26, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1521 from JerryZQS/master
修复完成按钮显示多语言不完整的Bug
parents
89db3ae6
c39c6c2e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
5 deletions
+9
-5
TZImagePickerController/TZImagePickerController/TZGifPhotoPreviewController.m
...ler/TZImagePickerController/TZGifPhotoPreviewController.m
+2
-1
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
...troller/TZImagePickerController/TZPhotoPickerController.m
+1
-1
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
...roller/TZImagePickerController/TZPhotoPreviewController.m
+1
-1
TZImagePickerController/TZImagePickerController/TZVideoCropController.m
...ontroller/TZImagePickerController/TZVideoCropController.m
+1
-0
TZImagePickerController/TZImagePickerController/TZVideoEditedPreviewController.m
.../TZImagePickerController/TZVideoEditedPreviewController.m
+2
-1
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
...troller/TZImagePickerController/TZVideoPlayerController.m
+2
-1
No files found.
TZImagePickerController/TZImagePickerController/TZGifPhotoPreviewController.m
View file @
d88eb774
...
...
@@ -118,7 +118,8 @@
_previewView
.
scrollView
.
frame
=
self
.
view
.
bounds
;
CGFloat
toolBarHeight
=
44
+
[
TZCommonTools
tz_safeAreaInsets
].
bottom
;
_toolBar
.
frame
=
CGRectMake
(
0
,
self
.
view
.
tz_height
-
toolBarHeight
,
self
.
view
.
tz_width
,
toolBarHeight
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
44
-
12
,
0
,
44
,
44
);
[
_doneButton
sizeToFit
];
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
_doneButton
.
tz_width
-
12
,
0
,
MAX
(
44
,
_doneButton
.
tz_width
),
44
);
TZImagePickerController
*
tzImagePickerVc
=
(
TZImagePickerController
*
)
self
.
navigationController
;
if
(
tzImagePickerVc
.
gifPreviewPageDidLayoutSubviewsBlock
)
{
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPickerController.m
View file @
d88eb774
...
...
@@ -397,7 +397,7 @@ static CGFloat itemMargin = 5;
_originalPhotoLabel
.
frame
=
CGRectMake
(
fullImageWidth
+
46
,
0
,
80
,
50
);
}
[
_doneButton
sizeToFit
];
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
_doneButton
.
tz_width
-
12
,
0
,
_doneButton
.
tz_width
,
50
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
_doneButton
.
tz_width
-
12
,
0
,
MAX
(
44
,
_doneButton
.
tz_width
)
,
50
);
_numberImageView
.
frame
=
CGRectMake
(
_doneButton
.
tz_left
-
24
-
5
,
13
,
24
,
24
);
_numberLabel
.
frame
=
_numberImageView
.
frame
;
_divideLine
.
frame
=
CGRectMake
(
0
,
0
,
self
.
view
.
tz_width
,
1
);
...
...
TZImagePickerController/TZImagePickerController/TZPhotoPreviewController.m
View file @
d88eb774
...
...
@@ -288,7 +288,7 @@
_originalPhotoLabel
.
frame
=
CGRectMake
(
fullImageWidth
+
42
,
0
,
80
,
44
);
}
[
_doneButton
sizeToFit
];
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
_doneButton
.
tz_width
-
12
,
0
,
_doneButton
.
tz_width
,
44
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
_doneButton
.
tz_width
-
12
,
0
,
MAX
(
44
,
_doneButton
.
tz_width
)
,
44
);
_numberImageView
.
frame
=
CGRectMake
(
_doneButton
.
tz_left
-
24
-
5
,
10
,
24
,
24
);
_numberLabel
.
frame
=
_numberImageView
.
frame
;
...
...
TZImagePickerController/TZImagePickerController/TZVideoCropController.m
View file @
d88eb774
...
...
@@ -178,6 +178,7 @@
CGFloat
toolBarHeight
=
44
+
[
TZCommonTools
tz_safeAreaInsets
].
bottom
;
CGFloat
doneButtonWidth
=
[
_doneButton
.
currentTitle
boundingRectWithSize
:
CGSizeMake
(
CGFLOAT_MAX
,
CGFLOAT_MAX
)
options
:
NSStringDrawingUsesFontLeading
attributes
:
@{
NSFontAttributeName
:
[
UIFont
systemFontOfSize
:
16
]}
context
:
nil
].
size
.
width
;
doneButtonWidth
=
MAX
(
44
,
doneButtonWidth
);
_cancelButton
.
frame
=
CGRectMake
(
12
,
self
.
view
.
tz_height
-
toolBarHeight
,
44
,
44
);
[
_cancelButton
sizeToFit
];
_cancelButton
.
tz_height
=
44
;
...
...
TZImagePickerController/TZImagePickerController/TZVideoEditedPreviewController.m
View file @
d88eb774
...
...
@@ -87,7 +87,8 @@
CGFloat
toolBarHeight
=
44
+
[
TZCommonTools
tz_safeAreaInsets
].
bottom
;
_toolBar
.
frame
=
CGRectMake
(
0
,
self
.
view
.
tz_height
-
toolBarHeight
,
self
.
view
.
tz_width
,
toolBarHeight
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
44
-
12
,
0
,
44
,
44
);
[
_doneButton
sizeToFit
];
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
_doneButton
.
tz_width
-
12
,
0
,
MAX
(
44
,
_doneButton
.
tz_width
),
44
);
_playButton
.
frame
=
CGRectMake
(
0
,
statusBarAndNaviBarHeight
,
self
.
view
.
tz_width
,
self
.
view
.
tz_height
-
statusBarAndNaviBarHeight
-
toolBarHeight
);
_playerLayer
.
frame
=
self
.
view
.
bounds
;
}
...
...
TZImagePickerController/TZImagePickerController/TZVideoPlayerController.m
View file @
d88eb774
...
...
@@ -174,7 +174,8 @@
_playerLayer
.
frame
=
self
.
view
.
bounds
;
CGFloat
toolBarHeight
=
44
+
[
TZCommonTools
tz_safeAreaInsets
].
bottom
;
_toolBar
.
frame
=
CGRectMake
(
0
,
self
.
view
.
tz_height
-
toolBarHeight
,
self
.
view
.
tz_width
,
toolBarHeight
);
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
44
-
12
,
0
,
44
,
44
);
[
_doneButton
sizeToFit
];
_doneButton
.
frame
=
CGRectMake
(
self
.
view
.
tz_width
-
_doneButton
.
tz_width
-
12
,
0
,
MAX
(
44
,
_doneButton
.
tz_width
),
44
);
_playButton
.
frame
=
CGRectMake
(
0
,
statusBarAndNaviBarHeight
,
self
.
view
.
tz_width
,
self
.
view
.
tz_height
-
statusBarAndNaviBarHeight
-
toolBarHeight
);
if
(
tzImagePickerVc
.
allowEditVideo
)
{
_editButton
.
frame
=
CGRectMake
(
12
,
0
,
44
,
44
);
...
...
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