UITableView: Need a liveUpdate (Huge amount of cells)

Posted by antihero on Stack Overflow See other posts from Stack Overflow or by antihero
Published on 2010-05-28T18:20:34Z Indexed on 2010/05/28 18:21 UTC
Read the original article Hit count: 180

Filed under:
|
|

Hey all,

I have a UITableView which shows some information. The informations are from a XMLFile. The Xmlfile is pretty big, about 500 entries.

I don't want that the user has to wait until the parsing has finished, i want to add cell by cell to the TableView.

Here's my code:

-(void) onFinishedPartDownload:(id)item
{
    if(odvTableViewDelegateController.odvs == nil)
        odvTableViewDelegateController.odvs = [NSMutableArray new];

    if([odvTableViewDelegateController.odvs count]==0)
    {
        genericDelegate.tableView.delegate = odvTableViewDelegateController;
        genericDelegate.tableView.dataSource = odvTableViewDelegateController;
    }

    [odvTableViewDelegateController.odvs addObject:item];

    [genericDelegate.tableView reloadData];
}

This method is called everytime an item has parsed, but it reloads the tableView all at once at the end. I don't have my expected liveUpdate which i'm searching for.

The intervall the method is called is about 0.001 to 0.0025 seconds.

Any ideas to fix that?

Sebastian

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview