【发布时间】:2016-07-08 15:41:19
【问题描述】:
我希望我的一些课程(不是全部)使用来自文档的'Class-Only Protocols'。我正在做的是
protocol RefreshData: class, ClassA, ClassB
{
func updateController()
}
我得到了错误
non class type 'RefreshData cannot inherit from classA
non class type 'RefreshData cannot inherit from classB
我不确定我是否完全按照文档中的说明进行操作。有人对此有任何想法吗?
【问题讨论】:
标签: ios swift swift2 protocols