Could not insert new outlet connection error

后端 未结 21 1381
南方客
南方客 2020-12-14 01:29

I have created a custom cell for loading into a table. The interface is complete and now I am trying to link the xib and the class.

I have the split screen view open

相关标签:
21条回答
  • 2020-12-14 02:33

    while the remove and add again solutions seemed to work a bit. I luckily had this same situation early on and wanted an easy way to fix it just incase it happened knee deep in programming. It turns out if you just build the the project "Command B" or go to Product and go to build. This worked fine and associated my view with the designated file.

    0 讨论(0)
  • 2020-12-14 02:33

    I tried "Product>Clean" and then "Product>Clean Build Folder" but still had problems. Then I simply deleted the offending .m and .h files associated with the view controller that was giving me problems, created a new .m and .h for the view controller class, reassigned the new view controller class to the storyboard object I was having troubles with, and everything worked.

    0 讨论(0)
  • 2020-12-14 02:34

    https://stackoverflow.com/a/16166878/521946

    Try to clean your project and restart Xcode.
    If it still cannot be connected, follow the Utilities navigation view of Xcode, in the Target membership section, uncheck & check the checkbox, it will be work. Maybe you should rebuild the project after unchecking.

    0 讨论(0)
提交回复
热议问题