Xcode 4.3: duplicated connections of an IBOutlet

一笑奈何 提交于 2019-12-05 20:27:39

I would stalk this up to Xcode storyboard wonkiness.

First, try a clean of the project and a re-build.

Should you still have that problem, manually define the @property without dragging from the AskerViewController view to the AskerViewController implementation (.m) file by doing the following.

Cut that IBOutlet @property line in the interface section of the implementation (.m) file for AskerViewController. Click the label in storyboard. Disconnect any binding that label to the AskerViewController. Clean the project. Then, paste back in the property, and control-drag from the label to the view controller orb at the bottom of the AskerViewController view in your storyboard file.

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