使用RubyMotion或Rubuto构建的应用程序的原生版本



在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.  

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

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

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

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

因此,这两段代码返回相同的东西:

目标C:

[[UIApplication sharedApplication] delegate]

RubyMotion:

UIApplication.sharedApplication.delegate

RubyMotion->编译->机器代码

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

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

最新更新