DZNEmptyDataSet icon indicating copy to clipboard operation
DZNEmptyDataSet copied to clipboard

- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView not work.

Open jjzjx118 opened this issue 7 years ago • 5 comments

I use the version 1.8.1 and below is my code: - (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView{ UIView * view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 100, 100)]; view.backgroundColor = [UIColor redColor]; return view; }

and there just an empty "DZNEmptyDataSetView" shows on my tableView

jjzjx118 avatar Nov 16 '17 01:11 jjzjx118

Because lose one constraints

search code: [self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[contentView]|" options:0 metrics:nil views:@{@"contentView": self.contentView}]];

then inset code: [self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[contentView]|" options:0 metrics:nil views:@{@"contentView": self.contentView}]];

or use my git source pod 'DZNEmptyDataSet', :git => 'https://github.com/hssdx/DZNEmptyDataSet.git', branch => 'master'

hssdx avatar Dec 21 '17 10:12 hssdx

Thank you, it works!

hell03W avatar Jan 05 '18 09:01 hell03W

nice

feng-zhang0712 avatar May 08 '18 09:05 feng-zhang0712

Thank you, you saved me!

aashouwang avatar May 09 '18 10:05 aashouwang

Thank you!

zhangxiongwen avatar Apr 24 '19 04:04 zhangxiongwen