为什么我的 NSIndexPath 值不是 [0,1] 而是 [0,64],我怎么能得到 [0,1]?

why my NSIndexPath value is not [0,1] but [0,64],how could I get [0,1]?

为什么我的NSIndexPath值不是[0,1]而是[0,64],我怎么能得到[0,1]

NSIndexPath 并不像存储 Array 那样简单地存储 Int,因此像您所做的直接检查并不能反映如果您 [=16] 会得到什么=] print(indexPath.row).