Sha256: 011aae429628444e474856e6daa93aeb8ef25b1548501d56e8f205edf76725f1

Contents?: true

Size: 269 Bytes

Versions: 1

Compression:

Stored size: 269 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubymotionr-0.0.1 spec/multiple-rubymotion-apps/Paint/app/paint_view_controller.rb