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
3782f95f
Commit
3782f95f
authored
Jun 26, 2024
by
pete谢兆麟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节修改
parent
9e266f14
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
YHFileRenameInputView.swift
...(服务中心)/MyCertificates(我的证书)/V/YHFileRenameInputView.swift
+7
-4
YHEditInterestViewController.swift
...ine(我的)/MyCard(我的名片)/C/YHEditInterestViewController.swift
+0
-1
No files found.
galaxy/galaxy/Classes/Modules/IntelligentService(服务中心)/MyCertificates(我的证书)/V/YHFileRenameInputView.swift
View file @
3782f95f
...
@@ -18,7 +18,7 @@ import UIKit
...
@@ -18,7 +18,7 @@ import UIKit
class
YHFileRenameInputView
:
UIView
{
class
YHFileRenameInputView
:
UIView
{
static
let
height
=
217.0
static
let
height
=
217.0
static
let
maxWordsCount
=
30
var
maxWordsCount
=
30
var
editBlock
:((
String
?)
->
Void
)?
var
editBlock
:((
String
?)
->
Void
)?
lazy
var
blackMaskView
:
UIView
=
{
lazy
var
blackMaskView
:
UIView
=
{
let
view
=
UIView
(
frame
:
UIScreen
.
main
.
bounds
)
let
view
=
UIView
(
frame
:
UIScreen
.
main
.
bounds
)
...
@@ -115,6 +115,9 @@ class YHFileRenameInputView: UIView {
...
@@ -115,6 +115,9 @@ class YHFileRenameInputView: UIView {
view
.
textField
.
text
=
defalutText
view
.
textField
.
text
=
defalutText
view
.
textField
.
attributedPlaceholder
=
NSAttributedString
(
string
:
placeholde
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
placeHolderColor
])
view
.
textField
.
attributedPlaceholder
=
NSAttributedString
(
string
:
placeholde
,
attributes
:
[
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
placeHolderColor
])
view
.
titleLabel
.
text
=
title
view
.
titleLabel
.
text
=
title
if
placeholde
==
"请输入自定义标签"
{
view
.
maxWordsCount
=
10
}
return
view
return
view
}
}
...
@@ -217,9 +220,9 @@ extension YHFileRenameInputView: UITextFieldDelegate {
...
@@ -217,9 +220,9 @@ extension YHFileRenameInputView: UITextFieldDelegate {
return
true
return
true
}
}
var
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
let
newText
=
(
textField
.
text
!
as
NSString
)
.
replacingCharacters
(
in
:
range
,
with
:
string
)
if
newText
.
count
>
S
elf
.
maxWordsCount
{
if
newText
.
count
>
s
elf
.
maxWordsCount
{
YHHUD
.
flash
(
message
:
"重命名限制最多
30
个字符"
)
YHHUD
.
flash
(
message
:
"重命名限制最多
\(
maxWordsCount
)
个字符"
)
return
false
return
false
}
}
return
true
return
true
...
...
galaxy/galaxy/Classes/Modules/Mine(我的)/MyCard(我的名片)/C/YHEditInterestViewController.swift
View file @
3782f95f
...
@@ -58,7 +58,6 @@ class YHEditInterestViewController: YHBaseViewController {
...
@@ -58,7 +58,6 @@ class YHEditInterestViewController: YHBaseViewController {
let
layout
=
YHSearchItemLayout
()
let
layout
=
YHSearchItemLayout
()
layout
.
scrollDirection
=
.
vertical
layout
.
scrollDirection
=
.
vertical
layout
.
minimumInteritemSpacing
=
12
layout
.
minimumInteritemSpacing
=
12
// 创建集合视图
// 创建集合视图
let
collectView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
layout
)
let
collectView
=
UICollectionView
(
frame
:
.
zero
,
collectionViewLayout
:
layout
)
collectView
.
delegate
=
self
collectView
.
delegate
=
self
...
...
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