【文件属性】:
文件名称:rubymotion-hybrid-sample:RubyMotion 混合(iOS + Android)应用程序示例
文件大小:9KB
文件格式:ZIP
更新时间:2021-07-13 02:11:53
Ruby
RubyMotion 混合示例
此示例演示了如何构建可在 iOS 和 Android 上运行的 RubyMotion 应用程序。
这是一个简单的应用程序,在纯 Ruby 中实现如下:
class MainScreen < Screen
def on_load
@label = Label . make ( 'Tap to start' )
@button = Button . make ( 'Start' , 'Stop' ) { timer_tap }
self << @label
self << @button
end
def timer_tap
if @timer
@timer . invalidate
@timer = nil
else
@duration = 0
@t
【文件预览】:
rubymotion-hybrid-sample-master
----app()
--------android()
--------ios()
--------shared()
----resources()
--------ios()
----Rakefile-android(417B)
----Rakefile-ios(342B)
----spec()
--------main_spec.rb(170B)
----README.md(2KB)
----Rakefile(492B)