-
Notifications
You must be signed in to change notification settings - Fork 1.7k
EmptyDataSet view disappears on reloadData #86
Comments
Actually yes, but then it shows an empty view. Any idea what can be happening? Thanks again. |
It's hard to tell without seeing any of your implementation. |
Sure.
I have an UIView above the table and i'm not sure if that's causing the issue. Thanks again! |
By implementation, I meant the DZNEmptyDataSetSource and DZNEmptyDataSetDelegate implementations. |
I also have the same problem in the condition of calling [tableView reloadData] the second time to show the empty view. I do this for paging demand. To fix this, I change the following code. in function:
I exchanged the order of
and
That seems to solve the problem. Thanks in advance... |
What version of the library are you using? In wich OS and devices does this happen? |
Last version fixed issues for me! Thanks. |
Great, thanks for the heads up @zentraedi! |
of course its the latest 1.7 version, I update yesterday before I find the problem @dzenbot |
@zentraedi reported the latest version fixed the issue for him, that why I asked. |
@dzenbot Hi, I ran into same issue. When reloadData is called after tableView has scrolled, the scrollView's contentSize does not reset by the time dzn_reloadEmptyDataSet is called. Therefore DZNEmptyDataSetView's frame.y is placed at the scrollView's last contentOffset. Switching the injection order as mentioned by @z0527z did fix the issue. Another fix was to reset the scrollView's contentSize in dzn_reloadEmptyDataSet. I'm using the latest version. |
I have the same problem when reloadData after tableView has scrolled. |
I believe #182 should fix this issue. |
I had it too with a collectionView. A quick & dirty fix is to call |
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:
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...
The text was updated successfully, but these errors were encountered: