Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
GeliBusinessPlatform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ljy
GeliBusinessPlatform
Commits
a59e414b
Commit
a59e414b
authored
Aug 11, 2020
by
刘俊宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善联系人信息
parent
2a4ba4b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
7 deletions
+25
-7
GeliBusinessPlatform/ViewController/货拉拉/下单联系人信息/XiaDanUserInfoViewController.swift
...Controller/货拉拉/下单联系人信息/XiaDanUserInfoViewController.swift
+25
-7
No files found.
GeliBusinessPlatform/ViewController/货拉拉/下单联系人信息/XiaDanUserInfoViewController.swift
View file @
a59e414b
...
...
@@ -10,8 +10,8 @@ import UIKit
import
LGButton
import
ContactsUI
class
XiaDanUserInfoViewController
:
BaseViewController
,
CNContactPickerDelegate
{
class
XiaDanUserInfoViewController
:
BaseViewController
,
CNContactPickerDelegate
,
UITextViewDelegate
{
@IBOutlet
weak
var
messageCountLbl
:
UILabel
!
@IBOutlet
weak
var
messageTV
:
UITextView
!
@IBOutlet
weak
var
userPhoneTF
:
UITextField
!
...
...
@@ -22,9 +22,11 @@ class XiaDanUserInfoViewController: BaseViewController , CNContactPickerDelegate
super
.
viewDidLoad
()
navbar
.
title
=
"下单联系人信息"
self
.
view
.
addSubview
(
navbar
)
SetTopFrame
(
view
:
contentV
,
height
:
370
)
}
messageTV
.
delegate
=
self
}
@IBAction
func
gotoPhoneAccoutAction
(
_
sender
:
UIButton
)
{
print
(
"gotoPhoneAccoutAction-获取通讯录"
)
//联系人选择控制器
...
...
@@ -52,14 +54,30 @@ class XiaDanUserInfoViewController: BaseViewController , CNContactPickerDelegate
for
str
in
strarr
{
phone
=
phone
+
str
}
}
}
userPhoneTF
.
text
=
phone
}
}
@IBAction
func
sureUserInfoAction
(
_
sender
:
LGButton
)
{
print
(
"sureUserInfoAction-确定"
)
}
func
textView
(
_
textView
:
UITextView
,
shouldChangeTextIn
range
:
NSRange
,
replacementText
text
:
String
)
->
Bool
{
messageCountLbl
.
text
=
"(
\(
textView
.
text
.
count
)
/200)"
if
(
textView
.
text
.
count
==
200
)
{
textView
.
text
=
textView
.
text
.
subString
(
start
:
0
,
length
:
200
)
}
return
true
}
func
textViewDidChange
(
_
textView
:
UITextView
)
{
if
textView
.
markedTextRange
==
nil
{
if
textView
.
text
.
count
>
200
{
textView
.
text
=
textView
.
text
.
subString
(
start
:
0
,
length
:
200
)
}
}
}
}
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