How to get the cell.label.text values from a selected row of UITableview?

后端 未结 2 873
难免孤独
难免孤独 2021-01-22 09:51

I am new in iOS application Development and i need help on UItableview. As i am populating the table-view with json data.I am also Using Customized Tableviewcell also. I am not

2条回答
  •  说谎
    说谎 (楼主)
    2021-01-22 10:04

    In Swift

    func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    
           let cell = tableView.cellForRow(at: indexPath) as! NotesCell!
            let value = cell?.lblDetail.text
        }
    

提交回复
热议问题