Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在ipad上布局不对 #12

Closed
gdfyj90 opened this issue Jan 18, 2018 · 5 comments
Closed

在ipad上布局不对 #12

gdfyj90 opened this issue Jan 18, 2018 · 5 comments

Comments

@gdfyj90
Copy link

gdfyj90 commented Jan 18, 2018

image
代码如下
UIView *view = [[UIView alloc] init]; view.backgroundColor = [UIColor redColor]; [self.view addSubview:view]; view.whc_LeftSpace(0).whc_RightSpace(0).whc_TopSpace(0).whc_Height(64);

@netyouli
Copy link
Owner

请使用最新版本

@gdfyj90
Copy link
Author

gdfyj90 commented Jan 18, 2018

pod的版本是2.8.0.7,还是有问题,直接下载的代码就没问题,是pod那边没有更新吗

@netyouli
Copy link
Owner

发个demo我看看

@netyouli
Copy link
Owner

我这里没有问题的
`_v.backgroundColor = [UIColor redColor];

_v.whc_LeftSpace(0)
.whc_RightSpace(0)
.whc_TopSpaceToView(0, self.view.safeAreaLayoutGuide)
.whc_Height(100);`

auto
_

@gdfyj90
Copy link
Author

gdfyj90 commented Jan 18, 2018

嗯查到问题了,是自己的基类没写好导致的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants