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
e116314a
Commit
e116314a
authored
Jan 15, 2025
by
Alex朱枝文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
赴港计划书 解决98个字符输入拼音 nihao没法选中‘你好’输入的问题
parent
4a480e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
YHHKPlanItemView.swift
...服务中心)/QMAS(优才)/MyDocuments(我的文书)/V/YHHKPlanItemView.swift
+7
-3
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/QMAS(优才)/MyDocuments(我的文书)/V/YHHKPlanItemView.swift
View file @
e116314a
...
...
@@ -492,9 +492,13 @@ extension YHHKPlanItemView : UITextViewDelegate {
if
text
.
isEmpty
{
return
true
}
let
tempTxt
=
textView
.
text
+
text
let
newLength
=
calcTextLength
(
string
:
tempTxt
)
// 使用 NSString 来处理文本替换
let
nsString
=
textView
.
text
as
NSString
let
newText
=
nsString
.
replacingCharacters
(
in
:
range
,
with
:
text
)
let
newLength
=
calcTextLength
(
string
:
newText
)
// let tempTxt = textView.text + text
// let newLength = calcTextLength(string: tempTxt)
return
newLength
<=
maxNumbler
}
...
...
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