PHP中文网2017-04-27 09:05:52
If the design is reasonable, the data of each cell is encapsulated in the model, so it can be taken directly from the model
我想大声告诉你2017-04-27 09:05:52
Generally, the data in the cell will be placed in an array, which can be obtained directly by processing the array
仅有的幸福2017-04-27 09:05:52
The number in your cell can be changed. I guess you want to get it directly from the cell. You can construct the NSIndexPath yourself. I assume that the data you want to retrieve is in section 0, and there are numCount rows in total, and the numbers are placed in numLable:
var numString = ""
for i in 0 ..< numCount {
numString += tableView.cellForRowAtIndexPath(NSIndexPath(forRow: i, inSection: 0)).numLable.text
}