Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
391400d3
Commit
391400d3
authored
Jul 15, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 截图问题
parent
940e5640
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
YHMyFileListViewController.swift
...e(服务中心)/FileList(文件清单)/C/YHMyFileListViewController.swift
+15
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/C/YHMyFileListViewController.swift
View file @
391400d3
...
...
@@ -11,6 +11,7 @@ import AttributedString
import
JXSegmentedView
import
Photos
import
GKNavigationBarSwift
import
TYSnapshotScroll
class
YHMyFileListViewController
:
YHBaseViewController
{
...
...
@@ -437,11 +438,16 @@ extension YHMyFileListViewController {
@objc
func
clickSaveBtn
()
{
YHHUD
.
show
(
.
progress
(
message
:
"正在生成图片"
))
self
.
tableView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
make
.
height
.
equalTo
(
self
.
tableView
.
contentSize
.
height
)
}
let
originY
=
self
.
tableView
.
contentOffset
.
y
self
.
tableView
.
scrollToBottom
(
animated
:
false
)
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.5
,
execute
:
{
...
...
@@ -450,6 +456,12 @@ extension YHMyFileListViewController {
YHHUD
.
hide
()
guard
let
self
=
self
else
{
return
}
self
.
tableView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
originY
),
animated
:
false
)
self
.
tableView
.
snp
.
remakeConstraints
{
make
in
make
.
top
.
equalToSuperview
()
make
.
left
.
right
.
equalToSuperview
()
make
.
bottom
.
equalTo
(
self
.
bottomView
.
snp
.
top
)
}
if
let
img
=
image
{
// 裁剪
let
targetFrame
=
CGRectMake
(
0
,
k_Height_NavigationtBarAndStatuBar
-
30
,
img
.
size
.
width
,
img
.
size
.
height
-
k_Height_NavigationtBarAndStatuBar
)
...
...
@@ -532,7 +544,7 @@ extension YHMyFileListViewController {
self
.
segmentView
.
isHidden
=
self
.
items
.
count
<=
1
self
.
headerView
.
height
=
self
.
items
.
count
>
1
?
self
.
originHeaderHeight
:
self
.
originHeaderHeight
-
self
.
topSegmentHeight
self
.
tableView
.
reloadData
()
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.
2
,
execute
:
{
DispatchQueue
.
main
.
asyncAfter
(
deadline
:
.
now
()
+
0.
5
,
execute
:
{
if
self
.
items
.
count
>
0
{
let
model
=
self
.
items
[
self
.
items
.
count
-
1
]
let
lastRow
=
model
.
supplement_list
.
count
>
0
?
model
.
supplement_list
.
count
-
1
:
0
...
...
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