Lua on the iPhone

前端 未结 4 959
情话喂你
情话喂你 2021-01-05 18:28

I\'m trying to load at run-time Lua scripts on the iPhone. Is there a possibility to do that?

How can I getting started with Lua? I can\'t find something. The only t

4条回答
  •  再見小時候
    2021-01-05 18:51

    the Lua docs are very good, also read PIL (Programming in Lua) first edition is available online, the second edition is inexpensive on hard copy.

    Lua is specifically designed to be used as an embedded language, simply link to any C (or Obj-C, or C++) project, and use the C API to load scripts and run them.

    Note that Apple forbids to create scripting platforms; but AFAICT, that only means that the user shouldn't be able to add Lua scripts to enhance your app. You're free to use embedded Lua to make your App more flexible and easier to write.

提交回复
热议问题