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
e6eefa72
Commit
e6eefa72
authored
May 28, 2020
by
lujunye
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复使用方法
parent
487a7347
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
...erdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
+5
-4
No files found.
GeliBusinessPlatform.xcworkspace/xcuserdata/junyelu.xcuserdatad/UserInterfaceState.xcuserstate
View file @
e6eefa72
No preview for this file type
GeliBusinessPlatform/View/Cell/TitleAndTFCell.swift
View file @
e6eefa72
...
...
@@ -10,7 +10,7 @@ import UIKit
@objc
protocol
TitleAndTFCellDelegate
{
@objc
optional
func
textFieldContent
(
content
:
String
,
cell
:
TitleAndTFCell
)
}
class
TitleAndTFCell
:
UITableViewCell
,
UITextFieldDelegate
{
class
TitleAndTFCell
:
UITableViewCell
{
@IBOutlet
weak
var
line
:
UIView
!
var
delegate
:
TitleAndTFCellDelegate
?
@IBOutlet
weak
var
textTF
:
UITextField
!
...
...
@@ -18,13 +18,14 @@ class TitleAndTFCell: UITableViewCell,UITextFieldDelegate {
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
self
.
selectionStyle
=
.
none
textTF
.
delegate
=
self
textTF
.
addTarget
(
self
,
action
:
#selector(
textChange(textField:)
)
,
for
:
.
allEditingEvents
)
}
func
textFieldDidEndEditing
(
_
textField
:
UITextField
)
{
@objc
func
textChange
(
textField
:
UITextField
)
{
delegate
?
.
textFieldContent
?(
content
:
textField
.
text
!
,
cell
:
self
)
}
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
...
...
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