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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
YHPlanTestViewController.swift
...Classes/Modules/Plan(方案)/C/YHPlanTestViewController.swift
+6
-6
No files found.
galaxy/galaxy/Classes/Modules/Plan(方案)/C/YHPlanTestViewController.swift
View file @
6f7361da
...
@@ -370,7 +370,7 @@ class YHPlanTestViewController: YHBaseViewController {
...
@@ -370,7 +370,7 @@ class YHPlanTestViewController: YHBaseViewController {
self
.
tableView
.
reloadData
()
self
.
tableView
.
reloadData
()
UIView
.
performWithoutAnimation
{
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
)
self
.
tableView
.
setContentOffset
(
.
zero
,
animated
:
false
)
}
}
}
}
...
@@ -542,7 +542,7 @@ extension YHPlanTestViewController: UIScrollViewDelegate {
...
@@ -542,7 +542,7 @@ extension YHPlanTestViewController: UIScrollViewDelegate {
for
index
in
0
...
infoArr
.
count
-
1
{
for
index
in
0
...
infoArr
.
count
-
1
{
let
rect
=
self
.
tableView
.
rectForRow
(
at
:
IndexPath
(
row
:
0
,
section
:
index
))
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
{
if
conditon
,
index
<
infoArr
.
count
-
1
{
find
=
true
find
=
true
...
@@ -572,10 +572,10 @@ extension YHPlanTestViewController: JXSegmentedViewDelegate {
...
@@ -572,10 +572,10 @@ extension YHPlanTestViewController: JXSegmentedViewDelegate {
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
func
segmentedView
(
_
segmentedView
:
JXSegmentedView
,
didSelectedItemAt
index
:
Int
)
{
let
index
=
segmentedView
.
selectedIndex
let
index
=
segmentedView
.
selectedIndex
let
rect
=
self
.
tableView
.
rectForHeader
(
inSection
:
index
)
let
rect
=
self
.
tableView
.
rectForHeader
(
inSection
:
index
)
let
gap
=
index
>
0
?
8.0
:
0.0
let
gap
=
index
>
0
?
8.0
:
0.0
self
.
tableView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
rect
.
origin
.
y
-
44.0
-
gap
),
animated
:
true
)
self
.
tableView
.
setContentOffset
(
CGPoint
(
x
:
0
,
y
:
rect
.
origin
.
y
-
44.0
-
gap
),
animated
:
true
)
if
segmentedView
==
segmented1View
{
if
segmentedView
==
segmented1View
{
self
.
segmented2View
.
defaultSelectedIndex
=
index
self
.
segmented2View
.
defaultSelectedIndex
=
index
...
...
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