Seeding Data Dynamically with a Factory

Now that we know the sorting behavior works correctly, we want to double-check the app’s performance when sorting a large number of search terms. Changing the sort order triggers row animations to show the cells shuffling around, and it’s possible that a large number of cells could gum up the works. The question is, how do we get a thousand search terms in our table view?

Yes, we could manually enter the terms ourselves and save an application data package. Instead we’ll dynamically generate the data. This sets up possibilities for more complex scenarios that would be cumbersome to manage as a set of data packages.

We’re going to build a data factory in our Objective-C code and tell it to populate ...

Get Test iOS Apps with UI Automation now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.