XCode6/Swift: unrecognized selector sent to instance

后端 未结 3 1015
北恋
北恋 2021-02-15 10:58

Thought I\'d try my hand at iOS development since the Swift/ios8 announcement and I\'m having trouble getting a basic tableView to build.

Currently getting the following

3条回答
  •  无人共我
    2021-02-15 11:41

    It appears that your table's data source is not set to your ViewController class:

     -[UIViewController tableView:numberOfRowsInSection:]: unrecognized selector sent to instance 0xb20fcf0
    

    Double check to make sure you've set up your XIB file/Storyboard properly.

提交回复
热议问题