rubymotion/BubbleWrap

View on GitHub
samples/gesture/app/controllers/drawing_view_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage
class DrawingViewController < UIViewController
  attr_reader :drawing_view

  def loadView
    screen = UIScreen.mainScreen.bounds
    self.view = UIView.alloc.initWithFrame screen
    self.view.backgroundColor = UIColor.whiteColor

    @drawing_view = RectView.alloc.initWithFrame [[screen.size.width/2-50,screen.size.height/2-50], [100,100]]
    self.view.addSubview @drawing_view
  end
end