How to connect textfield in cell as an outlet to a table view cell class swift

m4thus4n :

I have a dynamic table view. I wanted to connect the textfield in a cell to my view controller but I got this error "Outlets cannot be connected to repeating content". I searched for help and found that you should connect your outlets to your cell class. But I am unable to connect my textfield as an outlet. I can only as an action. I have correctly gave the class to the cell. Thanks

rbaldwin :

Ensure that you are using a custom class of UITableViewCell, and update the class in the Identity Inspector for your cell.

If Control-dragging from the storyboard UITextField to the Code does not work, create the code first and drag from the circle to the left of the code to the UITextField in the storyboard.

@IBOutlet var yourTextField: UITextField!

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Table View Cell is Blank Swift

How to reload data in table view by tapping the cell of collection view in swift

How to assign value to table view cell in completion handler Swift

How to change the default delete button in a table view cell in Swift?

How to add current time to label in table view cell swift 3

How to hide a custom class label in a table view cell?

how to expand table view cell?

reload cell data in table view with Swift

circular image in table view cell swift

Case for table view cell. swift

Custom table view cell in Swift, without Storyboard

Custom table view cell with swift in xcode 6

Swift: Create UILabel in Table View Cell

Set table view cell height by identifier - Swift

Single cell Selection in table view in swift

Pass array items to table view cell in swift

Button inside Cell Table View Swift iOS

get row of Cell in Table View Swift

Swift 2.0 if statement in table view cell

Deleting Table View Cell with Parse in Swift

table view cell of custom class returning nil

how to pass the data back from table view cell to table view class?

Swift unable to dequeue a cell with identifier Cell - must register a nib or a class for the identifier or connect a prototype cell in a storyboard

How to change the cell height of inner table view cell in iOS?

How to show new View Controller when a Table View Cell is clicked in Swift

how to properly resize the table view cell?

How to build a Table View with multiple cell types?

How to expand my table view cell?

How to Show Multiple Lines in a Table View Cell