Xcode Error: Outlets cannot be connected to repeating content

蓝咒 提交于 2019-12-01 04:26:01

This message only occurs if you connect it to the view controller. As I have already commented, you probably did not delete the first connection outlet you've made to your view controller. Even if you delete the IBOutlet code from your view controller you still need to right click it and delete the old connection that probably still there. After deleting it the error message will go away.

this issue happen when you delete view from your class but still have reference in your view

here is example I remove back outlet reference from my class but my view still keep the reference Notice yellow rectangle just delete it by click at x

if you want to know how to reach this view , open your storyboard , right click at top left yellow it will show this dialog

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!