DZNEmptyDataSet icon indicating copy to clipboard operation
DZNEmptyDataSet copied to clipboard

when a tableview has many sections and all the sections are folded, the empty view will be shown on the tableview

Open a-silent-guy opened this issue 6 years ago • 2 comments

a-silent-guy avatar Oct 10 '18 03:10 a-silent-guy

Did you find any solution about it? @coder-weed-Xu

atalayasa avatar Oct 25 '18 08:10 atalayasa

I solved my issue with following code

    func emptyDataSetShouldDisplay(_ scrollView: UIScrollView) -> Bool {
        return viewModel.numOfCell == 0
    }

numOfCell is the size of the array that you are displaying inside table view. So unless your array size not equal to 0 the empty table view won't be shown.

atalayasa avatar Oct 30 '18 12:10 atalayasa