2012-08-10 37 views
4

我有表格視圖。對於特定的單元格,我現在設置了一個標籤值,在我的方法中,我正在接收索引路徑,我如何使用索引路徑訪問cell.tag。如何從索引路徑獲取單元格值? - IOS

+0

是否只想訪問每個單元的標籤或值? – 2012-08-10 12:18:27

回答

13
UITableViewCell *cell = [theTableView cellForRowAtIndexPath:theIndexPath]; 
NSInteger tag = cell.tag; 

我希望這有助於。

2
int yourCellsTag = [[yourTableView cellForRowAtIndexPath:indexPath] tag]; 
相關問題