alibaba / alibaba/LuaViewSDK

OC的代码怎么调用lua的某一个函数?

Open
#38 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
3.7k
Forks
759
PR merge metrics
No merged PRs in 30d

Description

看到demo里面有lua脚本调用oc函数的案例,但是反过来可以在oc代码里面直接调用lua 执行其中某一个函数吗? 没看到相关的代码。

另外demo中代码不完整:
2016-06-26 14:34:54.856 Demo[23080:758361] [LuaView][error] Not found Method: JHSLuaViewController.setLuaBox:
2016-06-26 14:38:07.796 Demo[23080:758361] [LuaView][error] Not found Method: JHSLuaViewController.externalApiDemo:number:
2016-06-26 14:38:07.796 Demo[23080:758361] [LuaView][error] Not found Method: JHSLuaViewController.externalApiDemo

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the demo code and the reported missing methods: JHSLuaViewController.setLuaBox:, externalApiDemo:number:, and externalApiDemo. Trace the existing Lua-to-Objective-C examples to determine whether a reverse call entry point is exposed. Done means the supported behavior and the incomplete demo paths are clearly resolved or documented, with a reproducible demo result.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, objective-c
Domain
mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.