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
953ea3a9
Commit
953ea3a9
authored
Jun 04, 2024
by
Steven杜宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
// 解决搜索默认文案显示bug
parent
74566351
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
YHHomePageViewController.swift
...Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
+1
-1
YHSearchInfomationVC.swift
...axy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
+2
-0
No files found.
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHHomePageViewController.swift
View file @
953ea3a9
...
...
@@ -68,7 +68,7 @@ class YHHomePageViewController: YHBaseViewController {
var
tapTimestamp
:
CFAbsoluteTime
=
-
10.0
func
updateDefaultSearchKeyWord
()
{
var
placeHolder
=
"香港
生活
"
var
placeHolder
=
"香港
身份
"
if
isHaveLocalSearchRecords
()
{
let
latestValidSearchWord
=
getLatestValidSearchWord
()
if
!
latestValidSearchWord
.
isEmpty
{
...
...
galaxy/galaxy/Classes/Modules/Home(首页)/C/YHSearchInfomationVC.swift
View file @
953ea3a9
...
...
@@ -294,7 +294,9 @@ class YHSearchInfomationVC: YHBaseViewController {
func
deleteAllSearchHistory
()
{
UserDefaults
.
standard
.
set
([],
forKey
:
searchInfoHistoryKey
)
UserDefaults
.
standard
.
set
(
""
,
forKey
:
kLatestValidSearchKey
)
UserDefaults
.
standard
.
synchronize
()
}
func
saveSearchHistory
(
_
text
:
String
)
{
...
...
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