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

[config setContainer:nil view:aView]; container 为nil 会crash #83

Open
Singsmlie opened this issue Nov 29, 2017 · 1 comment
Open

Comments

@Singsmlie
Copy link

不需要传递controller 是否可以支持,只传递一个父视图,我现在现在这样传递会crash
[config setContainer:nil view:aView]; container 为nil 会crash

@Singsmlie
Copy link
Author

2017-11-30 10 35 39
这里面原来的glkviewcontroller 是一个临时的, 如果你设置了viewcontroller 它则被强引用,在viewcontroller销毁的时候并才会一起销毁,
如果viewcontroller为nil的话, glkviewcontroller 在函数栈跑完就被dealloc了
所以我修改的是把glkcontroller 当做一个属性被,viewcontroller 就可以为nil

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

1 participant