DZNEmptyDataSet
DZNEmptyDataSet copied to clipboard
- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView not work.
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
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'
Thank you, it works!
nice
Thank you, you saved me!
Thank you!