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

ccbi读取问题 #4

Closed
lance0805 opened this issue Apr 26, 2013 · 3 comments
Closed

ccbi读取问题 #4

lance0805 opened this issue Apr 26, 2013 · 3 comments

Comments

@lance0805
Copy link

在ccb里面设置的是横屏的,然后使用luaproxy读取的时候是竖屏的,无论怎样设置Supported Device Ortientations 都不行

@shawnclovie
Copy link
Owner

这个恐怕和LuaProxy无关,因为其中并未有横竖屏的操作,只是帮你把ccbi读取的请求传给CCBReader。
iOS6.0后增加了两个设定横竖屏的函数,所以你要在你的RootViewController.mm里同时改变
shouldAutorotateToInterfaceOrientation 和 supportedInterfaceOrientations,分别用于6.0或之前的iOS系统。
Android的话,在配置文件里修改即可。

@lance0805
Copy link
Author

读取节点有问题,getNode一直为nil,getNodeWithType报错: argument #1 is 'class CCBProxy'; 'CCBProxy' expected.
在ccbi中我已经添加了并且设置为owner var,getNode取不到

@shawnclovie
Copy link
Owner

proxy:getNode"name"如为nil,请再去检查CocosBuilder检查一下,如有大小写问题,或者前后有空格,也会导致问题,必须使用完全相同的字符串。
getNodeWithType与getNode相同,必须用CCBProxy的实例变量来操作,不过,现在可以无视这个函数,因为可以这样:tolua.cast(proxy:getNode"name")。

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