0
我是xcode编程新手,遇到此错误。我不确定新更新的xcode希望我在这里做什么,因为它在我升级之前就已经工作了。'FormBaseCell'类型的值没有成员
错误:
Value of type 'FormBaseCell' has no member.
我的代码:
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let rowDescriptor = formRowDescriptorAtIndexPath(indexPath)
let formBaseCellClass = formBaseCellClassFromRowDescriptor(rowDescriptor)
let reuseIdentifier = NSStringFromClass(formBaseCellClass)
var cell: FormBaseCell? = tableView.dequeueReusableCellWithIdentifier(reuseIdentifier) as? FormBaseCell
if cell == nil {
cell = formBaseCellClass.init(style: .Default, reuseIdentifier: reuseIdentifier)
cell?.tableViewController = self // <--error
cell?.configure()
}