【发布时间】:2014-02-05 05:37:28
【问题描述】:
如果单元格在 UITableView 中随机创建,如何通过 IOS 中的 Instruments 计算单元格总数。
【问题讨论】:
-
我曾尝试计算,但计数不正确。我正在编写部分代码:\n var temp = application.mainWindow().collectionView()[0].cells()[0].tableViews()[0].cells()[0]; \n var x=0;\nfor(var i in temp){x = x +1 } \n UILogger.logMessage(x);
标签: xcode5 ios-ui-automation xcode-instruments