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
c6e327b8
Commit
c6e327b8
authored
Jun 29, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理 一处刷新
parent
7109ed99
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
YHApplyActivityAlert.swift
...s/Community(社区)/Activity(活动)/V/YHApplyActivityAlert.swift
+6
-1
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/V/YHApplyActivityAlert.swift
View file @
c6e327b8
...
...
@@ -586,12 +586,13 @@ extension YHApplyActivityAlert: UITextFieldDelegate {
let
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
if
textField
==
nameTextField
{
if
newText
.
count
>
20
{
updateButtonUI
()
return
false
}
}
else
if
textField
==
applyNumberTextField
{
if
!
string
.
isNumeric
{
YHHUD
.
flash
(
message
:
"请输入数字"
)
updateButtonUI
()
return
false
}
...
...
@@ -599,16 +600,20 @@ extension YHApplyActivityAlert: UITextFieldDelegate {
if
let
item
=
Int
(
newText
),
item
>
10
{
textField
.
text
=
"10"
YHHUD
.
flash
(
message
:
"最多添加10人"
)
updateButtonUI
()
return
false
}
else
if
let
item
=
Int
(
newText
),
item
<
1
{
textField
.
text
=
"1"
YHHUD
.
flash
(
message
:
"至少添加1人"
)
updateButtonUI
()
return
false
}
}
else
if
textField
==
phoneTextField
{
if
newText
.
count
>
20
{
updateButtonUI
()
return
false
}
}
else
{
...
...
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