“Could not find any information for class named ViewController”

后端 未结 30 2027
南方客
南方客 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:28

    Sometime Xcode does due to VC not referencing class file. The simple solution for this is:

    write property manually as given.

    class YourClassName{
    
         @IBOutlet weak var YourTableName: UITableView!
    
    }
    

    This will make a empty link sign before @IBOutlet, open your project in assistant editor then click link sign and drag into the View which you want to connect (i have connected with TableView). and thats it. Enjoy Happy Coding!!!

提交回复
热议问题