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

tableView.emptyDataSetVisible always return NO #208

Open
EggmanQi opened this issue Feb 23, 2016 · 0 comments
Open

tableView.emptyDataSetVisible always return NO #208

EggmanQi opened this issue Feb 23, 2016 · 0 comments

Comments

@EggmanQi
Copy link

It's a great library and it works fine in a few days ago.
But today when i test my APP and found that 'reloadEmptyDataSet' doesn't make anything happen.
Pod code is pod DZNEmptyDataSet

    _status = myStatus;
    _emptyDescription = description;    
    switch (_status) {
        case SSTableViewEmptyStatus_Loading:
            _statusImage = ImageNamed(@name);
            _displayStatus = NO;
            break;
        case SSTableViewEmptyStatus_NoData:
            _statusImage = ImageNamed(@name);
            _displayStatus = YES;
            break;
        case SSTableViewEmptyStatus_Reload:
            _statusImage = ImageNamed(@name);
            _buttonImage = ImageNamed(@name);
            _displayStatus = YES;
            break;
        default:
            // . other status
            break;
    }

    [self.tableView reloadEmptyDataSet];
    NSLog(@"%@", self.tableView.emptyDataSetSource); // return nonnull value
    NSLog(@"%@", self.tableView.emptyDataSetDelegate); // return nonnull value
    NSLog(@"%@", self.tableView.emptyDataSetVisible? @"yes" : @"no");  // just return "no"
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant