$:.unshift("/Library/RubyMotion/lib") require 'motion/project' Motion::Project::App.setup do |app| # Use `rake config' to see complete project settings. app.name = 'ipadtest' app.device_family = [:ipad] end class AppDelegate def application(application, didFinishLaunchingWithOptions:launchOptions) @window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds) @window.rootViewController = MyViewController.alloc.init @window.rootViewController.wantsFullScreenLayout = true @window.makeKeyAndVisible true end end class MyViewController < UIViewController def viewDidLoad view.backgroundColor = UIColor.blackColor end def touchesBegan(touches, withEvent:event) puts "Touched" end end
This has not been resolved for me at this time.