Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

EmptyDataSet view disappears on reloadData #86

@zentraedi

Description

@zentraedi

Hi!

I'm integrating DZNEmptyDataSet in my project and falls into place. However, i have a method that fetches the data for the tableview from the backend and as soon as i call reloadData, the table view shows the prototype cell i have defined.

This is the code:

[self fetchTransactionsOnCompletion:^(BOOL success) {
        if (success) {
            [self.overallTransactionsAmount setText:[NSString stringWithFormat:@"$%0.2f", [_transactions overallAmount]]];
            [self.tableView reloadData];
            [HUD hide:YES];
        }else{
            [alert show];
        }
    }];

If i don't call reloadData the DZNEmptyDataSet view shows just fine. If i call reloadData, be it in viewDidLoad, viewWillAppear or pull down refresher, it just goes away.

Am i missing something?

Thanks in advance...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions