joamag
joamag

Reputation: 1472

Detect end of reloadData method in UITablewView

Is there any way of detecting the end of the reloadData method in UITableView ?

I can use the viewDidAppear for the initial call but after that I have no way of detecting the end of a reloadData.

Upvotes: 0

Views: 1525

Answers (1)

Jake
Jake

Reputation: 3973

Well, there is nothing in the documentation and the UITableViewDelegate is of no help either. In theory, what you could do, is subclass UITableView and override the reloadData method like so:

- (void)reloadData
{
    // reload data starts
    [super reloadData];

    // and here reload data ended..
}

Unless reloadData spawns some separate background threading, this marks the end of reloadData. Good luck.

Upvotes: 1

Related Questions