问题:从UITableView检索文本字段值时。

时间:2017-11-13 17:52:15

标签: swift uitableview

从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 = 

请提供相关信息。

0 个答案:

没有答案
相关问题