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
ee3d2bc6
Commit
ee3d2bc6
authored
Jul 16, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// UI
parent
86042aaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
YHMyFileListViewController.swift
...e(服务中心)/FileList(文件清单)/C/YHMyFileListViewController.swift
+5
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/FileList(文件清单)/C/YHMyFileListViewController.swift
View file @
ee3d2bc6
...
@@ -446,6 +446,8 @@ extension YHMyFileListViewController {
...
@@ -446,6 +446,8 @@ extension YHMyFileListViewController {
@objc
func
clickSaveBtn
()
{
@objc
func
clickSaveBtn
()
{
YHHUD
.
show
(
.
progress
(
message
:
"正在生成图片"
))
YHHUD
.
show
(
.
progress
(
message
:
"正在生成图片"
))
let
originY
=
self
.
tableView
.
contentOffset
.
y
if
self
.
tableView
.
contentSize
!=
self
.
fakeTableView
.
contentSize
{
if
self
.
tableView
.
contentSize
!=
self
.
fakeTableView
.
contentSize
{
self
.
tableView
.
contentSize
=
self
.
fakeTableView
.
contentSize
self
.
tableView
.
contentSize
=
self
.
fakeTableView
.
contentSize
}
}
...
@@ -456,7 +458,7 @@ extension YHMyFileListViewController {
...
@@ -456,7 +458,7 @@ extension YHMyFileListViewController {
}
}
self
.
tableView
.
setNeedsLayout
()
self
.
tableView
.
setNeedsLayout
()
self
.
tableView
.
layoutIfNeeded
()
self
.
tableView
.
layoutIfNeeded
()
let
originY
=
self
.
tableView
.
contentOffset
.
y
TYSnapshotScroll
.
screenSnapshot
(
self
.
tableView
)
{
TYSnapshotScroll
.
screenSnapshot
(
self
.
tableView
)
{
[
weak
self
]
image
in
[
weak
self
]
image
in
YHHUD
.
hide
()
YHHUD
.
hide
()
...
@@ -474,9 +476,9 @@ extension YHMyFileListViewController {
...
@@ -474,9 +476,9 @@ extension YHMyFileListViewController {
let
targetFrame
=
CGRectMake
(
0
,
k_Height_NavigationtBarAndStatuBar
-
30
,
img
.
size
.
width
,
img
.
size
.
height
-
k_Height_NavigationtBarAndStatuBar
+
30
)
let
targetFrame
=
CGRectMake
(
0
,
k_Height_NavigationtBarAndStatuBar
-
30
,
img
.
size
.
width
,
img
.
size
.
height
-
k_Height_NavigationtBarAndStatuBar
+
30
)
let
croppedImage
=
img
.
cropped
(
to
:
targetFrame
)
let
croppedImage
=
img
.
cropped
(
to
:
targetFrame
)
self
.
saveImage
(
croppedImage
)
self
.
saveImage
(
croppedImage
)
DispatchQueue
.
main
.
async
After
(
deadline
:
.
now
()
+
0.4
,
execute
:
{
DispatchQueue
.
main
.
async
{
self
.
tableView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
originY
),
animated
:
false
)
self
.
tableView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
originY
),
animated
:
false
)
}
)
}
}
else
{
}
else
{
YHHUD
.
flash
(
message
:
"生成图片失败"
)
YHHUD
.
flash
(
message
:
"生成图片失败"
)
...
...
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