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

pod方式安装后,ios8 alloc后stackview为nil #38

Open
guoweikun621 opened this issue Aug 2, 2016 · 7 comments
Open

pod方式安装后,ios8 alloc后stackview为nil #38

guoweikun621 opened this issue Aug 2, 2016 · 7 comments

Comments

@guoweikun621
Copy link

No description provided.

@ghost
Copy link

ghost commented Sep 6, 2016

Have same issue here.
Already set Builder for 9.0 and later in Interface Builder Document

@guoweikun621
Copy link
Author

已经在xib设置为9.0及以后了,alloc后还是会为nil。但是如果直接把FDStackView源文件拖入工程,而不用pod安装,alloc后就正常了。难道是不支持pod方式?

@ghost
Copy link

ghost commented Sep 7, 2016

@guoweikun621 我按照你的方法拖入工程,然后 copy 例子代码 执行,发现UIStackView *stackView = [[UIStackView alloc] init];依然是nil。难道是我遗漏了什么步骤?

@guoweikun621
Copy link
Author

@stoneimoimoi 我用是sb做的,直接代码alloc我没试过。在sb上,如果FDStackView是pod安装的就不行,copy到工程就可以。

@ghost
Copy link

ghost commented Sep 8, 2016

谢谢。。。我已经改用 OAStackView了。。。

@wtlucky
Copy link
Member

wtlucky commented Oct 8, 2016

The same issue as #36

@guakeliao
Copy link

@ghost
ios 9 之前用:
UIStackView *stackView = [[NSClassFromString(@"UIStackView") alloc]init];

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

3 participants