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
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.
Comments