尝试:
class SomeClass { var coreDataStuff = CoreDataStuff! lazy var somethingElse: SomethingElse = SomethingElse(coreDataStuff: self.coreDataStuff)}
精确确定惰性var的类型并将其添加
self.到您传递的参数中非常重要
欢迎分享,转载请注明来源:内存溢出
尝试:
class SomeClass { var coreDataStuff = CoreDataStuff! lazy var somethingElse: SomethingElse = SomethingElse(coreDataStuff: self.coreDataStuff)}
精确确定惰性var的类型并将其添加
self.到您传递的参数中非常重要
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)