Files
RubyMotion/sample/paint/app/paint_view_controller.rb
Laurent Sansonetti 6cf7150783 clean up the samples
2012-02-28 14:41:27 +01:00

14 lines
269 B
Ruby

class PaintViewController < UIViewController
def loadView
self.view = PaintView.alloc.init
end
def canBecomeFirstResponder
true
end
def motionEnded(motion, withEvent:event)
self.view.eraseContent if motion == UIEventSubtypeMotionShake
end
end