objective-c - 怎么取得每个cell里的数字,并组成一个字符串
迷茫
迷茫 2017-04-27 09:03:52
0
3
594

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(3)
洪涛

If the design is reasonable, the data of each cell is encapsulated in the model, so it can be taken directly from the model

我想大声告诉你

Generally, the data in the cell will be placed in an array, which can be obtained directly by processing the array

仅有的幸福

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
}
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template