Xcode 10.2 with Swift 5.0 compiler - protocol inheritance issue

后端 未结 3 834
逝去的感伤
逝去的感伤 2020-11-29 07:27

We have a big issue with the current Xcode version (10.2).

There is a BasicViewController class with the following signature:

class Basi         


        
3条回答
  •  日久生厌
    2020-11-29 07:52

    You should attached dataSource and delegate both side using Storyboard and also Class, because once i had the same issue for tableview and it was due to in class i have not done

    self.tableView.delegate = self
    self.tableView.datasource = self
    

    i think you are not doing like this.

    I know that it's not necessary to use both style but some time we need this. have a look on this answer https://stackoverflow.com/a/39443079/3485420

提交回复
热议问题