DZNEmptyDataSet icon indicating copy to clipboard operation
DZNEmptyDataSet copied to clipboard

Wrong offset of empty data view position.

Open ElvistLui opened this issue 5 years ago • 3 comments

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

ElvistLui avatar Jan 06 '21 01:01 ElvistLui

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

norman93sun avatar Jan 12 '21 03:01 norman93sun

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

norman93sun avatar Jan 12 '21 05:01 norman93sun

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

pennelia16 avatar Sep 15 '21 18:09 pennelia16