문제

How to calculate total number of cells through Instruments in IOS if cells are creating randomly in UITableView.

도움이 되었습니까?

해결책

Why don't you use UIAElementArray.length property? From the code provided in comment it should look like this:

var cellsCount = application
                    .mainWindow()
                    .collectionView()[0]
                    .cells()[0]
                    .tableViews()[0]
                    .cells()
                    .length;

UIALogger.logMessage(cellsCount);
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top