Swift - the output cannot be connected to repeated content

Full error: PlayerView exiting TableViewController in AVPlayerView is invalid. Outputs cannot be connected to repeat content.

Similar answers, such as this one , did not work (assuming that I am trying them correctly, I am very new to iOS).

All I want is a view in a TableViewCell.

I tried dragging the View into the Storyboard in the contentView (and cell) of my TableViewCell, assigning it the class AVPlayerView: UIView (and a subclass of tableViewCell: AVPlayerView: UITableViewCell), then ctrl + dragging from that view into the storyboard in my TableViewController. Then it does not compile. Actually vaguely, thanks for the help.

+6
source share
1 answer

Your table view may have static content or dynamic content.

If you want the table view to always have the same content, set it to static (in the interface builder), and then you can link such points in the UIViewController .

If you want the table view cells to change dynamically, you cannot do it this way. Because you could repeat the cells, and the output would be mixed. You need to subclass UITableViewCell for your cells and create points there.

To clarify: in dynamic table mode you need to ctrl + drag the output to a subclass of UITableViewCell , and not the view controller.

+20
source

All Articles