使用RubyMotion或Rubuto构建的应用程序本机如何?

时间:2013-11-22 19:50:05

标签: native rubymotion ruboto nativeapplication

在RubyMotion网站的主页上,他们说这是一个

revolutionary toolchain that lets you quickly develop and test native iOS and OS X
applications for iPhone, iPad and Mac

在Rubuto框架网站上,他们说了类似的东西

Ruboto is a framework and tool chain to develop native Android apps, using the Ruby
language we all know and love.  

如何使用这些框架开发的应用程序称为本机应用程序?

2 个答案:

答案 0 :(得分:3)

RubyMotion工具链直接针对Objective-C运行时和API进行编译,与Objective-C相同。

RubyMotion代码编译成原生机器代码,就像Obj-C应用程序一样。

http://www.rubymotion.com/developer-center/guides/runtime/

因此,这两段代码返回相同的内容:

的OBJ-C:

[[UIApplication sharedApplication] delegate]

RubyMotion:

UIApplication.sharedApplication.delegate

RubyMotion - >编译 - >机器代码

Objective-C - >编译 - >机器代码

答案 1 :(得分:2)

Ruboto应用程序可以称为本机,因为从外部它们无法与用Java开发的应用程序区分开来。它们不仅仅是在另一个应用上运行的脚本。它们是直接访问Android API的独立应用程序。