Saturday, March 10, 2012

The Maximum Number of Rows in UITableViewController

I am quite interested in find the number of rows that UITableViewController supports. The result is between 40,000,000 and 50,000,000:

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
    // Return the number of rows in the section.
    return 40000000;

A table view with 40,000,000 rows works fine but with 50,000,000 rows it does not.