“Could not find any information for class named ViewController”

后端 未结 30 2018
南方客
南方客 2020-12-02 06:35

This bug has been driving me nuts since I started using Xcode (4.6.3). Whenever I try to link a Storyboard item to my code, I get the error:

Could not

30条回答
  •  悲&欢浪女
    2020-12-02 07:38

    For me, the view I had specified a custom class for was failing to be compiled by interface builder. It was marked @IBDesignable.

    Removing @IBDesignable, and then adding my outlets, and then marking it as @IBDesignable resolved the issue in my case.

提交回复
热议问题