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()
}