Open yanyanforest opened 6 years ago
it is work for me, thx!
I find the really reason, customView lost a constraints in the below function.
- (void)setupConstraints
I suggest u change the version to v1.6.1, everything is ok!
@kirinzer how you change the function - (void)setupConstraints
?
I do like this in this method 'if (_customView) { CGFloat height = _customView.bounds.size.height; [self.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|[customView]|" options:0 metrics:nil views:@{@"customView":_customView}]]; [self.contentView addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|[customView(==height)]|" options:0 metrics:@{@"height":@(height)} views:@{@"customView":_customView}]]; }'. about you?
I find that the custom view for delegate method
- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView...
reasons:as I think class DZNEmptyDataSetView implements method- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event
.it wirte this:then no any response, so I modify this method add if statement,
so has response,works as well