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

Wrong offset of empty data view position. #468

Open
ElvistLui opened this issue Jan 6, 2021 · 3 comments
Open

Wrong offset of empty data view position. #468

ElvistLui opened this issue Jan 6, 2021 · 3 comments

Comments

@ElvistLui
Copy link

STEP:
1.Load two pages of data;
2.Swipe half the screen;
3.Clear the data, then[tableView reloadData];.

RESULT:
DZNEmptyDataSetView should be on top, but the position here is wrong.
image

I suggest moving the [self dzn_reloadEmptyDataSet]; method in the figure to the last call.
image

@norman93sun
Copy link

norman93sun commented Jan 12, 2021

i have the same issue!
Try with:
pod 'DZNEmptyDataSet', :git => "https://github.com/norman93sun/DZNEmptyDataSet.git"

@norman93sun
Copy link

norman93sun commented Jan 12, 2021

I found the code is not right from pod. @dzenbot
Since I add DZNEmptyDataSet from podfile,the func didMoveToSuperview is not the same with source code

截屏2021-01-12 下午1 52 46

@pennelia16
Copy link

I had the same issue, but Norman's code wasn't meshing well in my project. I ended up changing to the Swift version instead and it worked.
https://github.com/Xiaoye220/EmptyDataSet-Swift

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

3 participants