You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 29, 2022. It is now read-only.
My customView is a view which contains a UIImageView and a label above both centering, and I return it at - (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView
However, the view's x is 0 instead of center, y works fine.
I tried to modify it in - (void)setupConstraints { ... if (_customView) {
using
My customView is a view which contains a UIImageView and a label above both centering, and I return it at - (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView
However, the view's x is 0 instead of center, y works fine.
I tried to modify it in - (void)setupConstraints { ... if (_customView) {
using
But it's really weird that I have to go through all this, did I do something wrong? Or is there a bug?
- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView, when u use this method to create a custom view, u should remember to use Autolayout to layout your subviews, such as using Masonry, Because inner DZNEmptyDataSet use NSLayoutConstraint to layout view.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
My customView is a view which contains a UIImageView and a label above both centering, and I return it at
- (UIView *)customViewForEmptyDataSet:(UIScrollView *)scrollView
However, the view's x is 0 instead of center, y works fine.
I tried to modify it in
- (void)setupConstraints { ... if (_customView) {
using
the customView's right became clinging to the content view. Then I tried below
This worked.
But it's really weird that I have to go through all this, did I do something wrong? Or is there a bug?
The text was updated successfully, but these errors were encountered: