سؤال

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