从UITableView检索文本字段值时。我得到空值。但屏幕显示值。
while counter <= sectionRowCount {
let indexPath = IndexPath(row:counter, section: 1)
let itemcell:StoreDisplayCell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! StoreDisplayCell
print("ListItem = \(itemcell.item.text!)")
print("Qty = \(itemcell.qty.text!)")
print("des = \(itemcell.item.description)")
counter = counter + 1
}
我的输出是
ListItem =
Qty =
请提供相关信息。