MD360Player4iOS
MD360Player4iOS copied to clipboard
[config setContainer:nil view:aView]; container 为nil 会crash
不需要传递controller 是否可以支持,只传递一个父视图,我现在现在这样传递会crash [config setContainer:nil view:aView]; container 为nil 会crash
这里面原来的glkviewcontroller 是一个临时的, 如果你设置了viewcontroller 它则被强引用,在viewcontroller销毁的时候并才会一起销毁,
如果viewcontroller为nil的话, glkviewcontroller 在函数栈跑完就被dealloc了
所以我修改的是把glkcontroller 当做一个属性被,viewcontroller 就可以为nil