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
6f7361da
Commit
6f7361da
authored
Apr 09, 2025
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// plan
parent
3c409ac1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
YHPlanTestViewController.swift
...Classes/Modules/Plan(方案)/C/YHPlanTestViewController.swift
+2
-2
No files found.
galaxy/galaxy/Classes/Modules/Plan(方案)/C/YHPlanTestViewController.swift
View file @
6f7361da
...
...
@@ -370,7 +370,7 @@ class YHPlanTestViewController: YHBaseViewController {
self
.
tableView
.
reloadData
()
UIView
.
performWithoutAnimation
{
self
.
tableView
.
scrollToRow
(
at
:
IndexPath
(
row
:
0
,
section
:
self
.
infoArr
.
count
-
2
),
at
:
.
bottom
,
animated
:
false
)
self
.
tableView
.
scrollToRow
(
at
:
IndexPath
(
row
:
NSNotFound
,
section
:
self
.
infoArr
.
count
-
2
),
at
:
.
top
,
animated
:
false
)
self
.
tableView
.
setContentOffset
(
.
zero
,
animated
:
false
)
}
}
...
...
@@ -542,7 +542,7 @@ extension YHPlanTestViewController: UIScrollViewDelegate {
for
index
in
0
...
infoArr
.
count
-
1
{
let
rect
=
self
.
tableView
.
rectForRow
(
at
:
IndexPath
(
row
:
0
,
section
:
index
))
let
conditon
=
tableView
.
contentOffset
.
y
<=
rect
.
origin
.
y
let
conditon
=
tableView
.
contentOffset
.
y
<=
rect
.
origin
.
y
-
44.0
if
conditon
,
index
<
infoArr
.
count
-
1
{
find
=
true
...
...
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