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

attempt to index global 'viewController' (a nil value) #42

Closed
Rah-xeno opened this issue Jul 4, 2016 · 2 comments
Closed

attempt to index global 'viewController' (a nil value) #42

Rah-xeno opened this issue Jul 4, 2016 · 2 comments

Comments

@Rah-xeno
Copy link

Rah-xeno commented Jul 4, 2016

找不到viewController,我该如何调用Controller的方法呢

@dongxicheng
Copy link

viewController是外部注册的一个native对象。取名iOS和安卓统一就可以,可以叫任意名字,没有注册就会找不到;
比如:
// 注册 外部对象.
self.lv[@"viewController"] = self;
lv是LView实例
@Property(nonatomic, strong) LView *lv;

self.lv[@"任意名称"] = 任意实例;

@Rah-xeno
Copy link
Author

Rah-xeno commented Jul 4, 2016

谢谢,setObject成功了

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