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

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...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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